From 6c49939869c20550512386610ece45aceb65e7f4 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 28 May 2010 10:02:17 +0200 Subject: [PATCH] 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-format-patch failed