dfu: remove limitation on partition size
Change long (32 bits on arm) to u64 (same type than offset) for size and read offset r_left So partition and device used for DFU can be greater than 4GB Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
committed by
Marek Vasut
parent
4de512018b
commit
15970d871c
@@ -110,7 +110,7 @@ struct dfu_entity {
|
||||
struct sf_internal_data sf;
|
||||
} data;
|
||||
|
||||
int (*get_medium_size)(struct dfu_entity *dfu, long *size);
|
||||
int (*get_medium_size)(struct dfu_entity *dfu, u64 *size);
|
||||
|
||||
int (*read_medium)(struct dfu_entity *dfu,
|
||||
u64 offset, void *buf, long *len);
|
||||
@@ -132,7 +132,7 @@ struct dfu_entity {
|
||||
u8 *i_buf;
|
||||
u8 *i_buf_start;
|
||||
u8 *i_buf_end;
|
||||
long r_left;
|
||||
u64 r_left;
|
||||
long b_left;
|
||||
|
||||
u32 bad_skip; /* for nand use */
|
||||
|
||||
Reference in New Issue
Block a user