commit | f0531a6c52a3b6b8738269c954b856e7b77fc256 | [log] [tgz] |
---|---|---|
author | Lokesh Vutla <lokeshvutla@ti.com> | Tue Jul 19 14:56:14 2016 +0530 |
committer | Tom Rini <trini@konsulko.com> | Fri Jul 22 14:46:25 2016 -0400 |
tree | 761296aadff9919413ba6cae4dc30b75e48001f5 | |
parent | 99fc6ea1211c9ee16982d37d487cbc217c8b69e9 [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>