From: Sascha Hauer Date: Tue, 27 Apr 2010 13:24:01 +0000 (+0200) Subject: mxc_nand: Fix OOB handling X-Git-Tag: v2.6.36-rc1~591^2^2~1^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ea32021c173c0c97482a1342a9069733032b647;p=pandora-kernel.git mxc_nand: Fix OOB handling 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 Reported-by: Wolfram Sang Tested-by: Baruch Siach --- Reading git-diff-tree failed