From a9dda40fe21be2890fd864c6b70810c2042ddb7f Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sun, 11 Sep 2022 02:31:21 +0100 Subject: oxnas: add testing support for Linux 5.15 Rebase patches and port SATA driver to work with Linux > 5.13. Tested on Shuttle KD-20. Signed-off-by: Daniel Golle --- target/linux/oxnas/files/drivers/ata/sata_oxnas.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/linux/oxnas/files') diff --git a/target/linux/oxnas/files/drivers/ata/sata_oxnas.c b/target/linux/oxnas/files/drivers/ata/sata_oxnas.c index b55995ccad..a5d7b3de72 100644 --- a/target/linux/oxnas/files/drivers/ata/sata_oxnas.c +++ b/target/linux/oxnas/files/drivers/ata/sata_oxnas.c @@ -31,6 +31,7 @@ #include #include +#include static inline void oxnas_register_clear_mask(void __iomem *p, unsigned mask) { @@ -2231,7 +2232,9 @@ static struct scsi_host_template sata_oxnas_sht = { .can_queue = SATA_OXNAS_QUEUE_DEPTH, .sg_tablesize = SATA_OXNAS_MAX_PRD, .dma_boundary = ATA_DMA_BOUNDARY, +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0) .unchecked_isa_dma = 0, +#endif }; -- cgit v1.2.3