]> git.dujemihanovic.xyz Git - u-boot.git/commit
Fix the NAND size overflow issue.
authorJason Jin <Jason.jin@freescale.com>
Fri, 19 Sep 2008 09:32:49 +0000 (17:32 +0800)
committerWolfgang Denk <wd@denx.de>
Tue, 14 Oct 2008 11:27:16 +0000 (13:27 +0200)
commitfecb5ade3b37f62981f2b05b621005850173aaa9
treefee29df48acb4e7264a6ffcaa6587f0a2287ce54
parent65d4a75fa0f57943aa4e7c552d8e0952d95676ec
Fix the NAND size overflow issue.

When the total size of all NAND devices exceeds 4 GiB, the size  will
overflow. This patch tries to fix this.

Note that we still have a problem when a single NAND device is bigger
than 4 GiB: then the overflow would actually happen earlier, i. e.
when storing the size in nand_info[].size, as nand_info[].size is an
"u_int32_t".

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
drivers/mtd/nand/nand.c