From: Pekon Gupta Date: Tue, 6 May 2014 04:11:32 +0000 (+0530) Subject: mtd: eLBC NAND: fix subpage write support X-Git-Tag: omap-for-v3.16/fixes-against-rc1~57^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f034d87def51f026b735d1e2877e9387011b2ba3;p=pandora-kernel.git mtd: eLBC NAND: fix subpage write support As subpage write is enabled by default for all drivers, nand_write_subpage_hwecc causes a crash if the driver did not register ecc->hwctl or ecc->calculate. This behavior was introduced in commit 837a6ba4f3b6d23026674e6af6b6849a4634fff9 "mtd: nand: subpage write support for hardware based ECC schemes". This fixes a crash by emulating subpage write support by padding sub-page data with 0xff on either sides to make it full page compatible. Reported-by: Helmut Schaa Tested-by: Helmut Schaa Signed-off-by: Pekon Gupta Reviewed-by: Scott Wood Cc: # 3.10.x+ Signed-off-by: Brian Norris --- Reading git-diff-tree failed