mtd: onenand: fix 4KiB page onenand chip recognition
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Mon, 11 Oct 2010 11:47:32 +0000 (14:47 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 25 Oct 2010 00:13:20 +0000 (01:13 +0100)
commitedb44b9b9cbff71f6aa9bebc384ee1896c8bfc2c
tree23d83d602e18de7c062198cc45e549f5380850cd
parent940fe282aeda984d32ca9e3d2be7df1b4c5161b1
mtd: onenand: fix 4KiB page onenand chip recognition

For 4Gib non-DDP chip it does not follow that it is always 4KiB page chip.
The number of data buffers is checked and if it is equal to 1
we suppose that it is 4KiB page onenand chip.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/onenand/onenand_base.c