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.yuich...@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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot