All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH  v4 7/7] mmc: dw_mmc: restore the card-present checking point
@ 2014-03-03  2:36 Jaehoon Chung
  2014-03-06  7:36 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: Jaehoon Chung @ 2014-03-03  2:36 UTC (permalink / raw)
  To: linux-mmc; +Cc: Chris Ball, Ulf Hansson, Seungwon Jeon

Restore the card-present cheching point.
(The following part was removed from commit bf626e5(mmc: dw_mmc: use slot-gpio to handle cd pin).)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 drivers/mmc/host/dw_mmc.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 22184c1..ab4c86d 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2113,6 +2113,11 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
 #endif /* CONFIG_MMC_DW_IDMAC */
 	}
 
+	if (dw_mci_get_cd(mmc))
+		set_bit(DW_MMC_CARD_PRESENT, &slot->flags);
+	else
+		clear_bit(DW_MMC_CARD_PRESENT, &slot->flags);
+
 	ret = mmc_add_host(mmc);
 	if (ret)
 		goto err_setup_bus;
-- 
1.7.9.5

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

* Re: [PATCH v4 7/7] mmc: dw_mmc: restore the card-present checking point
  2014-03-03  2:36 [PATCH v4 7/7] mmc: dw_mmc: restore the card-present checking point Jaehoon Chung
@ 2014-03-06  7:36 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2014-03-06  7:36 UTC (permalink / raw)
  To: Jaehoon Chung; +Cc: linux-mmc, Chris Ball, Seungwon Jeon

On 3 March 2014 03:36, Jaehoon Chung <jh80.chung@samsung.com> wrote:
> Restore the card-present cheching point.
> (The following part was removed from commit bf626e5(mmc: dw_mmc: use slot-gpio to handle cd pin).)
>
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>

Acked-by: Ulf Hansson <ulf.hansson@linaro.org>

> ---
>  drivers/mmc/host/dw_mmc.c |    5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index 22184c1..ab4c86d 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -2113,6 +2113,11 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
>  #endif /* CONFIG_MMC_DW_IDMAC */
>         }
>
> +       if (dw_mci_get_cd(mmc))
> +               set_bit(DW_MMC_CARD_PRESENT, &slot->flags);
> +       else
> +               clear_bit(DW_MMC_CARD_PRESENT, &slot->flags);
> +
>         ret = mmc_add_host(mmc);
>         if (ret)
>                 goto err_setup_bus;
> --
> 1.7.9.5

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

end of thread, other threads:[~2014-03-06  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-03  2:36 [PATCH v4 7/7] mmc: dw_mmc: restore the card-present checking point Jaehoon Chung
2014-03-06  7:36 ` Ulf Hansson

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.