mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
dfu: dfu_sf: Fix read offset
The offset was applied to write, but not read, now its applied to both. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
This commit is contained in:
parent
46bac66b20
commit
e5f00f0180
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ static long dfu_get_medium_size_sf(struct dfu_entity *dfu)
|
|||
static int dfu_read_medium_sf(struct dfu_entity *dfu, u64 offset, void *buf,
|
||||
long *len)
|
||||
{
|
||||
return spi_flash_read(dfu->data.sf.dev, offset, *len, buf);
|
||||
return spi_flash_read(dfu->data.sf.dev, dfu->data.sf.start + offset,
|
||||
*len, buf);
|
||||
}
|
||||
|
||||
static u64 find_sector(struct dfu_entity *dfu, u64 start, u64 offset)
|
||||
|
|
Loading…
Add table
Reference in a new issue