Hi,

On Fri, Mar 11, 2011 at 14:08:14, Raffaele Recalcati wrote:
> From: Raffaele Recalcati <raffaele.recalc...@bticino.it>
> 
[...]
[...]
> @@ -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


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

[...]
[...]

Regards, 
Gururaja
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to