]> git.sur5r.net Git - u-boot/commit
dfu: allow dfu read on partition greater than 2GB
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 19 Jul 2017 14:39:22 +0000 (16:39 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:38 +0000 (23:34 +0200)
commit4de512018ba7d57f1672be21c7459281f7c97514
treeca142a43fc4dde3780e35568eedbbe26dbeec39c
parentbab0146ea91146aafa8cf10a34a45ae85eca5683
dfu: allow dfu read on partition greater than 2GB

solve issue on get_medium_size() function
the detection of error is a simple test < 0
but for ARM platform, long is 32bits and 2GB = 0x80000000
is seen as error.

I solve the issue by changing the prototype fo the function
to separate size and result.
This patch prepare the next patch with size change to u64.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/dfu/dfu.c
drivers/dfu/dfu_mmc.c
drivers/dfu/dfu_nand.c
drivers/dfu/dfu_ram.c
drivers/dfu/dfu_sf.c
include/dfu.h