2023-11-15 14:01:26

by Thomas Pfaff

[permalink] [raw]
Subject: [PATCH RFC 3/3 stable-6.1] spi: spi-atmel: enable dma on AT91SAM9G45

From: Thomas Pfaff <[email protected]>

AT91SAM9G45 spi has version 0x210, but dma is working on it.

Signed-off-by: Thomas Pfaff <[email protected]>
---
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index eaf4f9ff2504..1e4722bdcb2d 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -1395,8 +1395,8 @@ static void atmel_get_caps(struct atmel_spi *as)

as->caps.is_spi2 = version > 0x121;
as->caps.has_wdrbt = version >= 0x210;
- as->caps.has_dma_support = version >= 0x212;
- as->caps.has_pdc_support = version < 0x212;
+ as->caps.has_dma_support = version >= 0x210;
+ as->caps.has_pdc_support = version < 0x210;
}

static void atmel_spi_init(struct atmel_spi *as)