[U-Boot] [PATCH 09/22] mmc: refactor SD startup to make it easier to support new modes
Jean-Jacques Hiblot
jjhiblot at ti.com
Mon May 15 10:49:05 UTC 2017
On 15/05/2017 05:28, Simon Glass wrote:
> On 12 May 2017 at 12:16, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
>> The SDcard startup process currently handles only 2 modes. To make it
>> easier to add support for more modes, let's make the process more generic
>> and use a list of the modes to try.
>> The major functional change is that when a mode fails we try the next one.
>> Not all modes are tried, only those supported by the card and the host.
>>
>> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
>> ---
>> drivers/mmc/mmc.c | 180 ++++++++++++++++++++++++++++++++++++++----------------
>> include/mmc.h | 1 +
>> 2 files changed, 128 insertions(+), 53 deletions(-)
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> Will you be using that foreach macro multiple times?
No. I defined it only for a matter of readability: to focus the the
attention to the body of the loop, not the control of the loop.
>
More information about the U-Boot
mailing list