[U-Boot] [PATCH] dm: mmc: fsl_esdhc: Fix card detection
Yuichiro Goto
goto.yuichiro at espark.co.jp
Fri Dec 7 05:51:20 UTC 2018
Card detection is not working properly because fsl_esdhc_get_cd() always
returns true since commit 653282b5672c ("dm: mmc: fsl_esdhc: Update to
support MMC operations"). This patch fixes it.
Signed-off-by: Yuichiro Goto <goto.yuichiro at espark.co.jp>
---
drivers/mmc/fsl_esdhc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 3cdfa7f..487cdcd 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -1539,7 +1539,6 @@ static int fsl_esdhc_get_cd(struct udevice *dev)
{
struct fsl_esdhc_priv *priv = dev_get_priv(dev);
- return true;
return esdhc_getcd_common(priv);
}
--
2.7.4
More information about the U-Boot
mailing list