[U-Boot] [PATCH] dm: mmc: fsl_esdhc: Fix card detection

7 Dec
2018
7 Dec
'18
6:51 a.m.
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@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
2346
Age (days ago)
2346
Last active (days ago)
0 comments
1 participants
participants (1)
-
Yuichiro Goto