From: Faiz Abbas Date: Wed, 29 Jan 2020 19:38:24 +0530 Subject: [PATCH v2 02/10] mmc: Add init() API In-Reply-To: References: <20200124115252.15712-1-faiz_abbas@ti.com> <20200124115252.15712-3-faiz_abbas@ti.com> Message-ID: <306e91fb-232c-299e-0f90-662ce67ac5c2@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On 29/01/20 1:33 pm, Simon Goldschmidt wrote: > On Fri, Jan 24, 2020 at 12:52 PM Faiz Abbas wrote: >> >> Add an init() API for platform specific init() operations. > > Could you describe why this cannot be done in the probe callback? It's not > easily visible as the function you changed (mmc_get_op_cond) doesn't even have > a comment to describe what it does... The reason is detailed in 06/10 patch description. probe() is always called for all MMC instances. I only want to switch on power (by calling sdhci_init()) and suffer the 1 second wait time when there is actually a card in the slot and user wants to access it. > > In general, I think commit messages could be more detailed than one line. If > only to make it easier in the future to recap why things have been done. > You're right. I will add a more detailed patch description in v2. Thanks, Faiz