[PATCH] mmci: calculate remaining bytes at error correctly

Linus Walleij linus.walleij at stericsson.com
Thu Jan 27 11:43:35 EST 2011


2011/1/27 Russell King - ARM Linux <linux at arm.linux.org.uk>:

> So, maybe we want:
>
>        host->data_xfered = ((success - 1) / data->blksz) * data->blksz;
>
> instead?

So like this:






More information about the linux-arm-kernel mailing list