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

Tom Rini trini at konsulko.com
Sat Jul 23 02:13:33 CEST 2016


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,
> which is not true always in FIT case. So, include the image offset while
> calculating number of sectors.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
> Reviewed-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/c608f406/attachment.sig>


More information about the U-Boot mailing list