mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
mmc: dw_mmc: restore the card-present checking point
Restore the card-present checking 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>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
This commit is contained in:
parent
9795a846e1
commit
ae0eb348e1
1 changed files with 5 additions and 0 deletions
|
@ -2113,6 +2113,11 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
|
||||||
#endif /* CONFIG_MMC_DW_IDMAC */
|
#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);
|
ret = mmc_add_host(mmc);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err_setup_bus;
|
goto err_setup_bus;
|
||||||
|
|
Loading…
Reference in a new issue