From 4f3ddba880d319aa37f7b83ec8565d97d8708c0c Mon Sep 17 00:00:00 2001 From: Hanumath Prasad Date: Wed, 12 Oct 2011 17:04:55 +0530 Subject: mach-ux500:u5500: Temporarily disable DMA for sd Due to problem with multiple insertion of SD card in DMA mode the dma support for SD cad is disabled temporarily. ST-Ericsson Id: ER 365282 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic4bf04f5b3a7d4fe8c2e1d18be11308f5e7eb108 Signed-off-by: Hanumath Prasad Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33785 Reviewed-by: QABUILD Reviewed-by: Preetham-rao K Reviewed-by: Ulf HANSSON Reviewed-by: Srinidhi KASAGAR --- arch/arm/mach-ux500/board-u5500-sdi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-ux500/board-u5500-sdi.c b/arch/arm/mach-ux500/board-u5500-sdi.c index b2801f76fa1..475e41e0628 100644 --- a/arch/arm/mach-ux500/board-u5500-sdi.c +++ b/arch/arm/mach-ux500/board-u5500-sdi.c @@ -88,6 +88,7 @@ static int u5500_sdi1_ios_handler(struct device *dev, struct mmc_ios *ios) return 0; } +#ifdef SD_WORKAROUND static struct stedma40_chan_cfg sdi1_dma_cfg_rx = { .mode = STEDMA40_MODE_LOGICAL, .dir = STEDMA40_PERIPH_TO_MEM, @@ -105,7 +106,7 @@ static struct stedma40_chan_cfg sdi1_dma_cfg_tx = { .src_info.data_width = STEDMA40_WORD_WIDTH, .dst_info.data_width = STEDMA40_WORD_WIDTH, }; - +#endif static struct mmci_platform_data u5500_sdi1_data = { .ios_handler = u5500_sdi1_ios_handler, .ocr_mask = MMC_VDD_29_30, @@ -116,11 +117,13 @@ static struct mmci_platform_data u5500_sdi1_data = { .gpio_cd = GPIO_SDMMC_CD, .gpio_wp = -1, .cd_invert = true, +#ifdef SD_WORKAROUND #ifdef CONFIG_STE_DMA40 .dma_filter = stedma40_filter, .dma_rx_param = &sdi1_dma_cfg_rx, .dma_tx_param = &sdi1_dma_cfg_tx, #endif +#endif }; /* -- cgit v1.2.3