[U-Boot] [PATCH 1/3][v3] mmc: checking status after commands with R1b response

Raffaele Recalcati lamiaposta71 at gmail.com
Fri Mar 11 10:17:33 CET 2011


Hi Gururaja,

On Fri, Mar 11, 2011 at 9:57 AM, Hebbar, Gururaja
<gururaja.hebbar at ti.com> wrote:
> Hi,
>
> On Fri, Mar 11, 2011 at 14:08:14, Raffaele Recalcati wrote:
>> From: Raffaele Recalcati <raffaele.recalcati at bticino.it>
>>
> [...]
> [...]

it means the lines are ok?

>> @@ -48,6 +48,36 @@ int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
>>       return mmc->send_cmd(mmc, cmd, data);
>>  }
>>
>> +int mmc_send_status(struct mmc *mmc, int timeout)
>> +{
>> +     struct mmc_cmd cmd;
>
> [...]
> [...]
>
>> +     do {
>> +             err = mmc_send_cmd(mmc, &cmd, NULL);
>> +                     break;
>
> Why this break

Sorry, it is a mistake.
Patch is coming.

>
>
>> +             if (err)
>> +                     return err;
>> +             else if (cmd.response[0] & MMC_STATUS_RDY_FOR_DATA)
>> +                     break;
>
> [...]
> [...]
>
> Regards,
> Gururaja
>

Bye,
Raffaele


More information about the U-Boot mailing list