diff mbox series

[RFC,3/3,stable-6.1] spi: spi-atmel: enable dma on AT91SAM9G45

Message ID 2863edc4-5daa-d8d6-5e8d-b9dc244bcb82@pcs.com
State New
Headers show
Series [RFC,1/3,stable-6.1] spi: spi-atmel: switch to managed dma_alloc_coherent | expand

Commit Message

Thomas Pfaff Nov. 15, 2023, 2:01 p.m. UTC
From: Thomas Pfaff <tpfaff@pcs.com>

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

Signed-off-by: Thomas Pfaff <tpfaff@pcs.com>
---
diff mbox series

Patch

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)