]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: spinand: winbond: Fix W35N number of planes/LUN
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jun 2025 08:47:58 +0000 (10:47 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jun 2025 09:18:45 +0000 (11:18 +0200)
commit60dffe96fab00cee7ef7f1b151da485d42ccb33a
tree26a087d0ad9024d53af5bbcdf20ad24de2de89c8
parent635e118317ffa773f6d25ec6a71b7927d7e8886a
mtd: spinand: winbond: Fix W35N number of planes/LUN

There's been a mistake when extracting the geometry of the W35N02 and
W35N04 chips from the datasheet. There is a single plane, however there
are respectively 2 and 4 LUNs. They are actually referred in the
datasheet as dies (equivalent of target), but as there is no die select
operation and the chips only feature a single configuration register for
the entire chip (instead of one per die), we can reasonably assume we
are talking about LUNs and not dies.

Reported-by: Andreas Dannenberg <dannenberg@ti.com>
Suggested-by: Vignesh Raghavendra <vigneshr@ti.com>
Fixes: 25e08bf66660 ("mtd: spinand: winbond: Add support for W35N02JW and W35N04JW chips")
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/winbond.c