From c0c4cda7634cc06a4f16a272d00d33dbd9a483e4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 30 Jul 2014 11:20:06 -0600 Subject: [PATCH] SAMA5 HSMCI: e-enable TX DMA and verify that DMA writes to the SD card are functional. They are so now TX DMA is re-enabled in the driver. This might affect the SAMA5D3 platforms where the TX DMA problem was found. The SAMA4D3 and 4 use the same HSMCI driver. Much has change since then and it is not surprising that DMA is now functional. However, the has not be re-verified on the SAMA5D3 which has a different DMA controller. --- arch/arm/src/sama5/sam_hsmci.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/sama5/sam_hsmci.c b/arch/arm/src/sama5/sam_hsmci.c index 224c289274..f0910df19e 100644 --- a/arch/arm/src/sama5/sam_hsmci.c +++ b/arch/arm/src/sama5/sam_hsmci.c @@ -181,12 +181,10 @@ # endif #endif -/* TX-DMA is not reliable. Often, the TX DMA will hang after transferring 64 bytes or so. - * I don't have any clue why at the moment. This option suppresses TX DMA (only). - */ +/* These were once helpful. Perhaps they will be so again some time. */ -#undef HSCMI_NORXDMA -#define HSCMI_NOTXDMA 1 +#undef HSCMI_NORXDMA /* Define to disable RX DMA */ +#undef HSCMI_NOTXDMA /* Define to disable TX DMA */ /* Timing */