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)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 21 Oct 2024 09:55:30 +0000 (11:55 +0200)
commitc1247de51cab53fc357a73804c11fb4fba55b2d9
tree19321664706daab3f4a666d67b333165449e81f5
parentf04ced6d545e20b3579c575b0afdbd7054db2543
mtd: spinand: winbond: Fix 512GW and 02JW OOB layout

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
drivers/mtd/nand/spi/winbond.c