[PATCH 1/1] mtd: eLBC NAND: fixes subpage write support

Brian Norris computersforpeace at gmail.com
Mon May 12 16:49:00 PDT 2014


On Wed, May 07, 2014 at 06:22:53PM -0500, Scott Wood wrote:
> On Tue, 2014-05-06 at 09:41 +0530, Pekon Gupta wrote:
> > 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.
> > 
> > CC: <stable at vger.kernel.org> # 3.10.x+
> > 
> > Reported-by: Helmut Schaa <helmut.schaa at googlemail.com>
> > Tested-by: Helmut Schaa <helmut.schaa at googlemail.com>
> > Signed-off-by: Pekon Gupta <pekon at ti.com>
> > ---
> >  drivers/mtd/nand/fsl_elbc_nand.c | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> 
> Reviewed-by: Scott Wood <scottwood at freescale.com>

Pushed to l2-mtd. Thanks!

Brian



More information about the linux-mtd mailing list