linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: mach-imx: sdhci-esdhc-imx: initialize DMA mask
@ 2016-04-11  8:20 Alexander Kurz
  2016-04-11  8:35 ` Uwe Kleine-König
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Alexander Kurz @ 2016-04-11  8:20 UTC (permalink / raw)
  To: linux-arm-kernel

With commit 7b91369b DMA access got disabled for device drivers with zero
DMA mask property. sdhci-esdhc-imx got blocked from DMA access by this.
Hence: initialize the dma mask to enable access again.

Signed-off-by: Alexander Kurz <akurz@blala.de>
---
 arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c b/arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c
index a5edd7d..3d039ef 100644
--- a/arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c
+++ b/arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c
@@ -71,6 +71,7 @@ struct platform_device *__init imx_add_sdhci_esdhc_imx(
 	if (!pdata)
 		pdata = &default_esdhc_pdata;
 
-	return imx_add_platform_device(data->devid, data->id, res,
-			ARRAY_SIZE(res), pdata, sizeof(*pdata));
+	return imx_add_platform_device_dmamask(data->devid, data->id, res,
+			ARRAY_SIZE(res), pdata, sizeof(*pdata),
+			DMA_BIT_MASK(32));
 }
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-04-29  9:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11  8:20 [PATCH] ARM: mach-imx: sdhci-esdhc-imx: initialize DMA mask Alexander Kurz
2016-04-11  8:35 ` Uwe Kleine-König
2016-04-11 10:10   ` Adrian Hunter
2016-04-11 16:13     ` Alexander Kurz
2016-04-12  6:05       ` Adrian Hunter
2016-04-12  8:40         ` Russell King - ARM Linux
2016-04-12  9:59           ` Adrian Hunter
2016-04-12 12:25             ` Alexandre Courbot
2016-04-12 15:31               ` Russell King - ARM Linux
2016-04-13  2:02                 ` Alexandre Courbot
2016-04-13  8:07                   ` Adrian Hunter
2016-04-16 21:48                     ` Arnd Bergmann
2016-04-18  6:58                       ` Adrian Hunter
2016-04-18 14:33                         ` Arnd Bergmann
     [not found]                           ` <57232233.1030702@intel.com>
2016-04-29  8:59                             ` Potential issue with SDHCI DMA Adrian Hunter
2016-04-29  9:19                               ` Jisheng Zhang
2016-04-12 15:29             ` [PATCH] ARM: mach-imx: sdhci-esdhc-imx: initialize DMA mask Russell King - ARM Linux
2016-04-11 12:46 ` Sergei Shtylyov
2016-04-13  1:38 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).