
Dear Faiz Abbas,
In message 1517564875-10237-1-git-send-email-faiz_abbas@ti.com you wrote:
When booting from a non-MMC device, the MMC sub-system may not be initialized when the environment is first accessed. We need to make sure that the MMC sub-system is ready in even a non-MMC boot case.
Therefore, initialize mmc during .init() of environment.
Do I understand correctly that you will always initialize the MMC sub-system if it is a candidate for reading the environment, even when the environment is read from elsewhere?
In this case I hereby NAK this patch.
U-Boot shall always use lazy initialization and never ever initialize hardware which it does not really use - see especially item 2 at [1].
[1] http://www.denx.de/wiki/U-Boot/DesignPrinciples
Best regards,
Wolfgang Denk