summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorPekon Gupta <pekon@ti.com>2014-05-06 09:41:32 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 11:18:24 -0700
commitfb4b756348079c378874d232f0f3664be6551aeb (patch)
tree43c66b8ed63b1ec47ebe57e8be05ce7decdb7fb6 /drivers/net
parentcbb5c309f56157e7010c40915b294151e83bd118 (diff)
mtd: eLBC NAND: fix subpage write support
commit f034d87def51f026b735d1e2877e9387011b2ba3 upstream. 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 <helmut.schaa@googlemail.com> Tested-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Pekon Gupta <pekon@ti.com> Reviewed-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions