* [PATCH] mmc: sdhci-esdhc-imx: remove ESDHC_CD_GPIO handling from IO accessory
@ 2013-01-15 15:19 Shawn Guo
2013-01-15 15:22 ` Chris Ball
0 siblings, 1 reply; 2+ messages in thread
From: Shawn Guo @ 2013-01-15 15:19 UTC (permalink / raw)
To: linux-mmc; +Cc: Chris Ball, Shawn Guo
With commit 9444e07 (mmc: remove unncessary mmc_gpio_free_cd() call from
slot-gpio users) in place, those ESDHC_CD_GPIO handling in IO accessory
becomes unnecessary. Remove them.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
drivers/mmc/host/sdhci-esdhc-imx.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index dd7fcc1..ae68bc9 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -150,16 +150,6 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg)
u32 val = readl(host->ioaddr + reg);
- if (unlikely(reg == SDHCI_PRESENT_STATE)) {
- /*
- * After SDHCI core gets improved to never query
- * SDHCI_CARD_PRESENT state in GPIO case, we can
- * remove this check.
- */
- if (boarddata->cd_type == ESDHC_CD_GPIO)
- val &= ~SDHCI_CARD_PRESENT;
- }
-
if (unlikely(reg == SDHCI_CAPABILITIES)) {
/* In FSL esdhc IC module, only bit20 is used to indicate the
* ADMA2 capability of esdhc, but this bit is messed up on
@@ -192,13 +182,6 @@ static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg)
u32 data;
if (unlikely(reg == SDHCI_INT_ENABLE || reg == SDHCI_SIGNAL_ENABLE)) {
- if (boarddata->cd_type == ESDHC_CD_GPIO)
- /*
- * These interrupts won't work with a custom
- * card_detect gpio (only applied to mx25/35)
- */
- val &= ~(SDHCI_INT_CARD_REMOVE | SDHCI_INT_CARD_INSERT);
-
if (val & SDHCI_INT_CARD_INT) {
/*
* Clear and then set D3CD bit to avoid missing the
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mmc: sdhci-esdhc-imx: remove ESDHC_CD_GPIO handling from IO accessory
2013-01-15 15:19 [PATCH] mmc: sdhci-esdhc-imx: remove ESDHC_CD_GPIO handling from IO accessory Shawn Guo
@ 2013-01-15 15:22 ` Chris Ball
0 siblings, 0 replies; 2+ messages in thread
From: Chris Ball @ 2013-01-15 15:22 UTC (permalink / raw)
To: Shawn Guo; +Cc: linux-mmc
Hi Shawn,
On Tue, Jan 15 2013, Shawn Guo wrote:
> With commit 9444e07 (mmc: remove unncessary mmc_gpio_free_cd() call from
> slot-gpio users) in place, those ESDHC_CD_GPIO handling in IO accessory
> becomes unnecessary. Remove them.
>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
> drivers/mmc/host/sdhci-esdhc-imx.c | 17 -----------------
> 1 file changed, 17 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
> index dd7fcc1..ae68bc9 100644
> --- a/drivers/mmc/host/sdhci-esdhc-imx.c
> +++ b/drivers/mmc/host/sdhci-esdhc-imx.c
> @@ -150,16 +150,6 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg)
>
> u32 val = readl(host->ioaddr + reg);
>
> - if (unlikely(reg == SDHCI_PRESENT_STATE)) {
> - /*
> - * After SDHCI core gets improved to never query
> - * SDHCI_CARD_PRESENT state in GPIO case, we can
> - * remove this check.
> - */
> - if (boarddata->cd_type == ESDHC_CD_GPIO)
> - val &= ~SDHCI_CARD_PRESENT;
> - }
> -
> if (unlikely(reg == SDHCI_CAPABILITIES)) {
> /* In FSL esdhc IC module, only bit20 is used to indicate the
> * ADMA2 capability of esdhc, but this bit is messed up on
> @@ -192,13 +182,6 @@ static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg)
> u32 data;
>
> if (unlikely(reg == SDHCI_INT_ENABLE || reg == SDHCI_SIGNAL_ENABLE)) {
> - if (boarddata->cd_type == ESDHC_CD_GPIO)
> - /*
> - * These interrupts won't work with a custom
> - * card_detect gpio (only applied to mx25/35)
> - */
> - val &= ~(SDHCI_INT_CARD_REMOVE | SDHCI_INT_CARD_INSERT);
> -
> if (val & SDHCI_INT_CARD_INT) {
> /*
> * Clear and then set D3CD bit to avoid missing the
Yay for removing ugly code! Thanks for doing this; pushed to mmc-next
for 3.9.
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-15 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-15 15:19 [PATCH] mmc: sdhci-esdhc-imx: remove ESDHC_CD_GPIO handling from IO accessory Shawn Guo
2013-01-15 15:22 ` Chris Ball
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).