mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
committed by
Marek Vasut
parent
bab0146ea9
commit
4de512018b
@@ -110,7 +110,7 @@ struct dfu_entity {
|
||||
struct sf_internal_data sf;
|
||||
} data;
|
||||
|
||||
long (*get_medium_size)(struct dfu_entity *dfu);
|
||||
int (*get_medium_size)(struct dfu_entity *dfu, long *size);
|
||||
|
||||
int (*read_medium)(struct dfu_entity *dfu,
|
||||
u64 offset, void *buf, long *len);
|
||||
|
Reference in New Issue
Block a user