aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Przywara2018-12-17 04:05:45 -0600
committerTom Rini2019-01-09 06:13:30 -0600
commiteef05fd3ba68220156f33ffe6a9e68e42a6a5b53 (patch)
treea663f34edf0c545594b19249b47d5e7b5e9d0d21
parent3b6989b526f06ee38afb31fab83c8a3f7f6201ea (diff)
downloadu-boot-eef05fd3ba68220156f33ffe6a9e68e42a6a5b53.tar.gz
u-boot-eef05fd3ba68220156f33ffe6a9e68e42a6a5b53.tar.xz
u-boot-eef05fd3ba68220156f33ffe6a9e68e42a6a5b53.zip
mmc: bring back partition init for non-DM MMC drivers
Commit d0851c893706 ("blk: Call part_init() in the post_probe() method") removed the call to part_init() in mmc.c, as this is done by the DM_MMC framework. However Allwinner is (still) relying on a non-DM MMC driver, so we are now missing the implicit partition init, leading to failing MMC accesses due to the missing partition information. Bring the call back just for non-DM MMC driver to fix this regression. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Soeren Moch <smoch@web.de>
-rw-r--r--drivers/mmc/mmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index f5c821e308..d858127132 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -2449,6 +2449,10 @@ static int mmc_startup(struct mmc *mmc)
2449 bdesc->revision[0] = 0; 2449 bdesc->revision[0] = 0;
2450#endif 2450#endif
2451 2451
2452#if !defined(CONFIG_DM_MMC) && (!defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBDISK_SUPPORT))
2453 part_init(bdesc);
2454#endif
2455
2452 return 0; 2456 return 0;
2453} 2457}
2454 2458