mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dm: mmc: Don't re-init when accessing environment
With driver model MMC is probed automatically when needed. We should not re-init MMC each time. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -121,9 +121,10 @@ static const char *init_mmc_for_env(struct mmc *mmc)
|
||||
if (!mmc)
|
||||
return "!No MMC card found";
|
||||
|
||||
#ifndef CONFIG_BLK
|
||||
if (mmc_init(mmc))
|
||||
return "!MMC init failed";
|
||||
|
||||
#endif
|
||||
if (mmc_set_env_part(mmc))
|
||||
return "!MMC partition switch failed";
|
||||
|
||||
|
Reference in New Issue
Block a user