[U-Boot] [PATCH] mtd: fix false positive "Offset exceeds device limit" error

Tom Rini trini at konsulko.com
Fri Jul 10 21:02:52 CEST 2015


On Wed, Jul 01, 2015 at 09:35:49PM +0900, Masahiro Yamada wrote:

> Since commit 09c3280754f8 (mtd, nand: Move common functions from
> cmd_nand.c to common place), NAND commands would not work at all
> on large devices.
> 
>     => nand read 80000000 10000 10000
> 
>     NAND read: Offset exceeds device limit
>     => nand erase 100000 100000
> 
>     NAND erase: Offset exceeds device limit
> 
> The type of the "size" of "struct mtd_info" is uint64_t, while
> mtd_arg_off_size() and mtd_arg_off() treat chipsize as int type.
> The chipsize is wrapped around if the argument is given with 2GB
> or larger.
> 
> Acked-by: Heiko Schocher <hs at denx.de>
> Acked-by: Scott Wood <scottwood at freescale.com>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>

Applied to u-boot/master, thanks!

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


More information about the U-Boot mailing list