[U-Boot] mmc_write.c: Make mmc_berase do 32bit safe 64bit math
Tom Rini
trini at konsulko.com
Fri Jun 19 00:46:26 CEST 2015
On Thu, Jun 11, 2015 at 08:53:31PM -0400, Tom Rini wrote:
> We want to see if the requested start or total block count are
> unaligned. We discard the whole numbers and only care about the
> remainder. Update the code to use div_u64_rem here and add a comment.
>
> Cc: Hans de Goede <hdegoede at redhat.com>
> Cc: Pantelis Antoniou <pantelis.antoniou at konsulko.com>
> Cc: Bernhard Nortmann <bernhard.nortmann at web.de>
> Reported-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> Tested-by: Bernhard Nortmann <bernhard.nortmann at web.de>
> Reviewed-by: Hans de Goede <hdegoede at redhat.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150618/8803b632/attachment.sig>
More information about the U-Boot
mailing list