From: Sascha Hauer Date: Fri, 28 May 2010 08:02:17 +0000 (+0200) Subject: mtd: mxc_nand: fix OOB accesses on i.MX27 X-Git-Tag: v2.6.36-rc1~301^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c49939869c20550512386610ece45aceb65e7f4;p=pandora-kernel.git mtd: mxc_nand: fix OOB accesses on i.MX27 The OOB handling in the mxc_nand driver is broken for v1 type controllers (i.MX27/31) with 512 byte page size. This perhaps did not show up because ubi does not use OOB. Update the driver to always read/write a whole page even if only OOB is requested. With this patch the driver passes the mtd_oobtest on i.MX27 with 512 byte page size. Also tested with 2048 byte page size and on i.MX35 (v2 type controller) Signed-off-by: Sascha Hauer Signed-off-by: David Woodhouse --- Reading git-diff-tree failed