mtd: onenand: bugfix for 2x mode bad block handling
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Thu, 2 Dec 2010 13:28:38 +0000 (15:28 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 3 Dec 2010 16:36:07 +0000 (16:36 +0000)
commit01039e4e63a8ea0d66fcfc71d7b99769bbbed9d6
treed156cc0d0f5475c4176293530aa6b2a738fabb0b
parent8a8f632d8534d0c403831341450bd8db9e842f05
mtd: onenand: bugfix for 2x mode bad block handling

This bug becomes visible in 2x mode when chip->writesize
is different from mtd->writesize (= 2 * chip->writesize).
At this case the bad block information is read from
the first and the third physical pages instead of
the first and the second as specification states.

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