commit | 5ea9b89a4d5c304f1a86f1c2081ee7b4302e3e05 | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@st.com> | Wed Jul 19 16:39:22 2017 +0200 |
committer | Marek Vasut <marex@denx.de> | Fri Jul 28 23:34:38 2017 +0200 |
tree | ca142a43fc4dde3780e35568eedbbe26dbeec39c | |
parent | b7c1cc65e9707def48c79731a5800784890c2a8b [diff] |
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>