Masahiro Yamada f18d11163e mtd: fix false positive "Offset exceeds device limit" error
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@denx.de>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2015-07-10 09:38:50 -04:00
..
2011-01-18 23:38:08 +01:00
2014-01-08 17:20:34 -07:00
2011-10-17 22:25:34 +02:00
2010-05-06 00:17:01 +02:00
2014-08-25 17:02:33 -04:00
2010-05-06 00:17:01 +02:00
2010-05-06 00:17:01 +02:00
2008-09-13 02:23:05 +02:00
2009-12-05 01:30:23 +01:00
2011-09-11 21:24:09 +02:00
2008-08-31 04:24:51 +02:00
2001-04-28 17:59:11 +00:00
2012-10-15 11:53:47 -07:00
2002-03-08 21:31:05 +00:00