Re: [U-Boot] [PATCH] spl: fit: Fix the number of bytes read in raw mode

2016-07-19 Thread Tom Rini
On Tue, Jul 19, 2016 at 02:56:14PM +0530, Lokesh Vutla wrote: > 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,

[U-Boot] [PATCH] spl: fit: Fix the number of bytes read in raw mode

2016-07-19 Thread Lokesh Vutla
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