]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a9baa05f36320472aa3dbc13fe90cc8440311f5
treed156cc0d0f5475c4176293530aa6b2a738fabb0b
parentc3c8e5a7fda2a896cf3b7a9b8835d61a0fec2909
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