• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

linux-3.0.x for AP-SH4A-0A Board


Commit MetaInfo

Revisionfbbc165db18d24de056e50d8ae7d6f1aa3b198fe (tree)
Time2011-08-05 13:58:31
AuthorShawn Guo <shawn.guo@lina...>
CommiterGreg Kroah-Hartman

Log Message

mmc: sdhci-esdhc-imx: SDHCI_CARD_PRESENT does not get cleared

commit 803862a6f7de4939e0a557214e5e4b37e36f87ff upstream.

The function esdhc_readl_le intends to clear bit SDHCI_CARD_PRESENT,
when the card detect gpio tells there is no card. But it does not
clear the bit actually. The patch gives a fix on that.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change Summary

Incremental Difference

--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -74,7 +74,7 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg)
7474 if (boarddata && gpio_is_valid(boarddata->cd_gpio)
7575 && gpio_get_value(boarddata->cd_gpio))
7676 /* no card, if a valid gpio says so... */
77- val &= SDHCI_CARD_PRESENT;
77+ val &= ~SDHCI_CARD_PRESENT;
7878 else
7979 /* ... in all other cases assume card is present */
8080 val |= SDHCI_CARD_PRESENT;