mmc: sdhci-esdhc: Add SDHCI_QUIRK_32BIT_DMA_ADDR
authorBenoît Thébaudeau <benoit@wsystem.com>
Tue, 30 May 2017 09:14:08 +0000 (11:14 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:32 +0000 (10:30 +0200)
The eSDHC can only DMA from 32-bit-aligned addresses.

This fixes the following test cases of mmc_test:
  11: Badly aligned write
  12: Badly aligned read
  13: Badly aligned multi-block write
  14: Badly aligned multi-block read

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc.h

index c4bbd7485987907778bb6d146229c22111f1b14a..e7893f21b65e56cbc634a1dfe79270b6692dcf56 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #define ESDHC_DEFAULT_QUIRKS   (SDHCI_QUIRK_FORCE_BLK_SZ_2048 | \
+                               SDHCI_QUIRK_32BIT_DMA_ADDR | \
                                SDHCI_QUIRK_NO_BUSY_IRQ | \
                                SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | \
                                SDHCI_QUIRK_PIO_NEEDS_DELAY | \