From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Fri, 20 Apr 2012 09:09:52 +0200 Subject: [U-Boot] [RESEND 2/2] mmc:fix Call mmc_init() when executing mmc_get_dev() In-Reply-To: References: <1334839158-23544-1-git-send-email-l.majewski@samsung.com> <1334839158-23544-3-git-send-email-l.majewski@samsung.com> Message-ID: <20120420090952.60c82296@lmajewski.digital.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, Lei > I'm concerning with this adding init here. > Since not every platform mount with emmc as boot device, and what they > need is booting fast. If I remember correctly, u-boot policy is to not initialize the mmc until it is needed (i.e. command is executed). So the extra init won't be executed until fatls or mmc is executed. > If you order them to initialize all mmc/sd at > mmc register stage, this adding booting time may not be the one they > want to see. I think that booting time will not increase, because in the mmc_init() there is a check: if (mmc->has_init) return 0; To prevent multiple register level initialization. The execution time increase is boiled down to executing a few instructions (when mmc->has_init is set). -- Best regards, Lukasz Majewski Samsung Poland R&D Center Platform Group