diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2016-07-19 14:56:14 +0530 |
---|---|---|
committer | Klaus Goger <klaus.goger@theobroma-systems.com> | 2016-09-18 20:22:05 +0200 |
commit | 8c52e6d902990517fe67cbd7d8581df45c8335a1 (patch) | |
tree | 1d130666913eb36a8f31aabe8c85f7a4c6fb5106 /arch | |
parent | ef86fa9a11fc1f92cd682deb46e127c8f274eb73 (diff) |
spl: fit: Fix the number of bytes read in raw mode
In raw mode a full sector is to be read even if image covers part of
a sector. Number of sectors are calculated as ROUND_UP(size)/sec_size by FIT
framework. This calculation assumes that image is at the 0th offset of a sector,
which is not true always in FIT case. So, include the image offset while
calculating number of sectors.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions