diff options
author | Tom Rini <trini@konsulko.com> | 2015-06-11 20:53:31 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-18 16:11:41 -0400 |
commit | 180f87fcc58936fb8d9e5a6babce739666c50b13 (patch) | |
tree | 90c757fdd1cb7eacb8c9696786f256ae30284960 /board | |
parent | 14ec12fa6f3da065842a3428f6cd620f04abcd58 (diff) | |
download | u-boot-imx-180f87fcc58936fb8d9e5a6babce739666c50b13.zip u-boot-imx-180f87fcc58936fb8d9e5a6babce739666c50b13.tar.gz u-boot-imx-180f87fcc58936fb8d9e5a6babce739666c50b13.tar.bz2 |
mmc_write.c: Make mmc_berase do 32bit safe 64bit math
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@redhat.com>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Cc: Bernhard Nortmann <bernhard.nortmann@web.de>
Reported-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Tested-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'board')
0 files changed, 0 insertions, 0 deletions