]> git.hungrycats.org Git - linux/commit
mtd: spinand: winbond: Fix 512GW and 02JW OOB layout
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 9 Oct 2024 12:49:59 +0000 (14:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:41:05 +0000 (10:41 +0100)
commit5e127c439298f8bd07ac36c607c63072983d04df
treedc77413a8e906d768c2bb7c85fe4b63e512d3c76
parente3d1c9e2b811f13bdbbb962c2b17a6091c28522c
mtd: spinand: winbond: Fix 512GW and 02JW OOB layout

commit c1247de51cab53fc357a73804c11fb4fba55b2d9 upstream.

Both W25N512GW and W25N02JW chips have 64 bytes of OOB and thus cannot
use the layout for 128 bytes OOB. Reference the correct layout instead.

Fixes: 6a804fb72de5 ("mtd: spinand: winbond: add support for serial NAND flash")
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/linux-mtd/20241009125002.191109-2-miquel.raynal@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/spi/winbond.c