From: Bernhard Nortmann Date: Fri, 12 Jun 2015 07:32:59 +0000 (UTC) Subject: [U-Boot] =?utf-8?q?=5BPATCH=5D_mmc=5Fwrite=2Ec=3A_Make_mmc=5Fbera?= =?utf-8?q?se_do_32bit_safe_64bit=09math?= References: <1434070411-28082-1-git-send-email-trini@konsulko.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Tom Rini konsulko.com> writes: > > 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. > > --- > drivers/mmc/mmc_write.c | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c > index 3db9669..7aea7e9 100644 Hi Tom! I can confirm that this patch solves the CONFIG_SYS_64BIT_LBA compilation issue with armhf for me (gcc 4.8.3 armv7a-hardfloat-linux-gnueabi, on a Banana Pi = sun7i/A20). So I'll add a Tested-by: Bernhard Nortmann BTW: There's a small typo you also might want to fix: "The erase range would be change to " -> "The erase range would be changed to " Regards, B. Nortmann