From: Shawn Guo <shawn.guo@linaro.org> To: linux-mmc@vger.kernel.org Cc: Chris Ball <cjb@laptop.org>, Wolfram Sang <w.sang@pengutronix.de>, Arnaud Patard <arnaud.patard@rtp-net.org>, Eric Benard <eric@eukrea.com>, linux-arm-kernel@lists.infradead.org, patches@linaro.org, Shawn Guo <shawn.guo@linaro.org> Subject: [PATCH v3 2/4] mmc: sdhci-esdhc-imx: SDHCI_CARD_PRESENT does not get cleared Date: Mon, 20 Jun 2011 18:38:43 +0800 [thread overview] Message-ID: <1308566325-11600-3-git-send-email-shawn.guo@linaro.org> (raw) In-Reply-To: <1308566325-11600-1-git-send-email-shawn.guo@linaro.org> 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> --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 248b8e5..94097c0 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -84,7 +84,7 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg) if (boarddata && gpio_is_valid(boarddata->cd_gpio) && gpio_get_value(boarddata->cd_gpio)) /* no card, if a valid gpio says so... */ - val &= SDHCI_CARD_PRESENT; + val &= ~SDHCI_CARD_PRESENT; else /* ... in all other cases assume card is present */ val |= SDHCI_CARD_PRESENT; -- 1.7.4.1
WARNING: multiple messages have this Message-ID (diff)
From: shawn.guo@linaro.org (Shawn Guo) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/4] mmc: sdhci-esdhc-imx: SDHCI_CARD_PRESENT does not get cleared Date: Mon, 20 Jun 2011 18:38:43 +0800 [thread overview] Message-ID: <1308566325-11600-3-git-send-email-shawn.guo@linaro.org> (raw) In-Reply-To: <1308566325-11600-1-git-send-email-shawn.guo@linaro.org> 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> --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 248b8e5..94097c0 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -84,7 +84,7 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg) if (boarddata && gpio_is_valid(boarddata->cd_gpio) && gpio_get_value(boarddata->cd_gpio)) /* no card, if a valid gpio says so... */ - val &= SDHCI_CARD_PRESENT; + val &= ~SDHCI_CARD_PRESENT; else /* ... in all other cases assume card is present */ val |= SDHCI_CARD_PRESENT; -- 1.7.4.1
next prev parent reply other threads:[~2011-06-20 10:29 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-06-20 10:38 [PATCH v3 0/4] Extend sdhci-esdhc-imx card_detect and write_protect support for mx5 Shawn Guo 2011-06-20 10:38 ` Shawn Guo 2011-06-20 10:38 ` [PATCH v3 1/4] mmc: sdhci: fix interrupt storm from card detection Shawn Guo 2011-06-20 10:38 ` Shawn Guo 2011-06-20 15:59 ` Philip Rakity 2011-06-20 15:59 ` Philip Rakity 2011-06-21 1:34 ` Shawn Guo 2011-06-21 1:34 ` Shawn Guo 2011-06-20 10:38 ` Shawn Guo [this message] 2011-06-20 10:38 ` [PATCH v3 2/4] mmc: sdhci-esdhc-imx: SDHCI_CARD_PRESENT does not get cleared Shawn Guo 2011-06-21 11:52 ` Wolfram Sang 2011-06-21 11:52 ` Wolfram Sang 2011-06-21 14:10 ` Shawn Guo 2011-06-21 14:10 ` Shawn Guo 2011-06-21 14:08 ` Chris Ball 2011-06-21 14:08 ` Chris Ball 2011-06-21 14:58 ` Wolfram Sang 2011-06-21 14:58 ` Wolfram Sang 2011-06-20 10:38 ` [PATCH v3 3/4] mmc: sdhci-esdhc-imx: remove "WP" from flag ESDHC_FLAG_GPIO_FOR_CD_WP Shawn Guo 2011-06-20 10:38 ` Shawn Guo 2011-06-20 10:38 ` [PATCH v3 4/4] mmc: sdhci-esdhc-imx: extend card_detect and write_protect support for mx5 Shawn Guo 2011-06-20 10:38 ` Shawn Guo 2011-06-21 1:39 ` [PATCH v3 0/4] Extend sdhci-esdhc-imx " Shawn Guo 2011-06-21 1:39 ` Shawn Guo 2011-06-21 9:44 ` Arnaud Patard 2011-06-21 9:44 ` Arnaud Patard (Rtp) 2011-06-21 14:12 ` Shawn Guo 2011-06-21 14:12 ` Shawn Guo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1308566325-11600-3-git-send-email-shawn.guo@linaro.org \ --to=shawn.guo@linaro.org \ --cc=arnaud.patard@rtp-net.org \ --cc=cjb@laptop.org \ --cc=eric@eukrea.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-mmc@vger.kernel.org \ --cc=patches@linaro.org \ --cc=w.sang@pengutronix.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.