Skip to contentSkip to conversation

mmc: unbreak sdhci-esdhc-imx on i.MX25

PATCH In review Eric Bénard 3 participants 4 messages Apr 18, 2012 – Apr 19, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: unbreak sdhci-esdhc-imx on i.MX25

this was broken by me in 37865fe91582582a6f6c00652f6a2b1ff71f8a78 "mmc: sdhci-esdhc-imx: fix timeout on i.MX's sdhc" where more extensive tests would have shown that read or write of data to the card were failing (even if the partition table was correctly read).

---
 drivers/mmc/host/sdhci-esdhc-imx.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci-esdhc-imx.c +1 -2
index 6193a0d..8abdaf6 100644
@@ -467,8 +467,7 @@ static int __devinit sdhci_esdhc_imx_probe(struct platform_device *pdev)
 	clk_prepare_enable(clk);
 	pltfm_host->clk = clk;
 
-	if (!is_imx25_esdhc(imx_data))
-		host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
+	host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
 
 	if (is_imx25_esdhc(imx_data) || is_imx35_esdhc(imx_data))
 		/* Fix errata ENGcm07207 present on i.MX25 and i.MX35 */
Signature · 1 line
1.7.7.6
#1 lore raw

Hi,

Quoted 17 lines · Eric Bénard

this was broken by me in 37865fe91582582a6f6c00652f6a2b1ff71f8a78 "mmc: sdhci-esdhc-imx: fix timeout on i.MX's sdhc" where more extensive tests would have shown that read or write of data to the card were failing (even if the partition table was correctly read).

---
 drivers/mmc/host/sdhci-esdhc-imx.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci-esdhc-imx.c +0 -0
index 6193a0d..8abdaf6 100644

drivers/mmc/host/sdhci-esdhc-imx.c static int __devinit sdhci_esdhc_imx_probe(struct platform_device *pdev) · line 473

Quoted 9 lines
drivers/mmc/host/sdhci-esdhc-imx.c +1 -2
@@ -467,8 +467,7 @@ static int __devinit sdhci_esdhc_imx_probe(struct platform_device *pdev)
 	clk_prepare_enable(clk);
 	pltfm_host->clk = clk;
 
-	if (!is_imx25_esdhc(imx_data))
-		host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
+	host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
 
 	if (is_imx25_esdhc(imx_data) || is_imx35_esdhc(imx_data))
 		/* Fix errata ENGcm07207 present on i.MX25 and i.MX35 */

Thanks, pushed to mmc-next for 3.4.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child
#2 lore raw
Quoted 1 line · Chris Ball

Thanks, pushed to mmc-next for 3.4.

If not done already, I think a stable-tag would make sense.

Signature · 2 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#3 lore raw

Hi,

Quoted 5 lines · Wolfram Sang
Quoted 1 line · Chris Ball

Thanks, pushed to mmc-next for 3.4.

If not done already, I think a stable-tag would make sense.

Thanks for noticing -- agreed and added.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child