public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] new version workaround for FSL's eSDHC controller
@ 2012-01-06  5:33 r66093
  2012-01-06  5:33 ` [PATCH 1/5 v2] ESDHC: add PIO mode support r66093
  0 siblings, 1 reply; 19+ messages in thread
From: r66093 @ 2012-01-06  5:33 UTC (permalink / raw)
  To: linux-mmc; +Cc: Jerry Huang

From: Jerry Huang <Chang-Ming.Huang@freescale.com>

The below patches are the workaround for FSL's eSDHC controller.
the patches (3/5, 4/5, 5/5) are modified based on Chris's hook patch,
the other patches (1/5, 2/5) have no any change.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>


^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH 1/5 v2] ESDHC: add PIO mode support
@ 2011-12-22 10:21 r66093
  2011-12-22 10:21 ` [PATCH 2/5 v2] ESDHC: set the timeout to the max value r66093
  0 siblings, 1 reply; 19+ messages in thread
From: r66093 @ 2011-12-22 10:21 UTC (permalink / raw)
  To: linux-mmc; +Cc: Jerry Huang, Gao Guanhua, Chris Ball

From: Jerry Huang <Chang-Ming.Huang@freescale.com>

For some FSL ESDHC controller(e.g. P2020E, Rev1.0), the SDHC can not work on
DMA mode because of the hardware bug, so we set a broken dma flag and use
PIO mode.

Signed-off-by: Gao Guanhua <B22826@freescale.com>
Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
CC: Chris Ball <cjb@laptop.org>
---
changes for v2:
	- change the property to compatible for quirks

 drivers/mmc/host/sdhci-pltfm.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index a9e12ea..ba36c36 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -2,7 +2,7 @@
  * sdhci-pltfm.c Support for SDHCI platform devices
  * Copyright (c) 2009 Intel Corporation
  *
- * Copyright (c) 2007 Freescale Semiconductor, Inc.
+ * Copyright (c) 2007, 2011 Freescale Semiconductor, Inc.
  * Copyright (c) 2009 MontaVista Software, Inc.
  *
  * Authors: Xiaobo Xie <X.Xie@freescale.com>
@@ -71,6 +71,9 @@ void sdhci_get_of_property(struct platform_device *pdev)
 		if (sdhci_of_wp_inverted(np))
 			host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT;
 
+		if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc"))
+			host->quirks |= SDHCI_QUIRK_BROKEN_DMA;
+
 		clk = of_get_property(np, "clock-frequency", &size);
 		if (clk && size == sizeof(*clk) && *clk)
 			pltfm_host->clock = be32_to_cpup(clk);
-- 
1.7.5.4



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

end of thread, other threads:[~2012-01-16  4:43 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-06  5:33 [PATCH 0/1] new version workaround for FSL's eSDHC controller r66093
2012-01-06  5:33 ` [PATCH 1/5 v2] ESDHC: add PIO mode support r66093
2012-01-06  5:33   ` [PATCH 2/5 v2] ESDHC: set the timeout to the max value r66093
2012-01-06  5:33     ` [PATCH 3/5 v4] ESDHC: Power management for ESDHC r66093
2012-01-06  5:33       ` [PATCH 4/5 v4] ESDHC: Workaround for data crc error on p1010rdb r66093
2012-01-06  5:33         ` [PATCH 5/5 v4] ESDHC: Fix DMA errors in kernel booting on P1010 r66093
2012-01-06 15:00           ` Chris Ball
2012-01-09  2:59             ` Huang Changming-R66093
2012-01-13  2:37         ` [PATCH 4/5 v4] ESDHC: Workaround for data crc error on p1010rdb Huang Changming-R66093
2012-01-13 12:12           ` Anton Vorontsov
2012-01-16  4:43             ` Huang Changming-R66093
2012-01-13  2:36       ` [PATCH 3/5 v4] ESDHC: Power management for ESDHC Huang Changming-R66093
2012-01-13 11:50         ` Anton Vorontsov
2012-01-13  2:36     ` [PATCH 2/5 v2] ESDHC: set the timeout to the max value Huang Changming-R66093
2012-01-13 11:54       ` Anton Vorontsov
2012-01-16  3:35         ` Huang Changming-R66093
2012-01-13  2:35   ` [PATCH 1/5 v2] ESDHC: add PIO mode support Huang Changming-R66093
2012-01-13 11:56     ` Anton Vorontsov
  -- strict thread matches above, loose matches on Subject: below --
2011-12-22 10:21 r66093
2011-12-22 10:21 ` [PATCH 2/5 v2] ESDHC: set the timeout to the max value r66093

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox