OpenCloudOS-Kernel/drivers/mtd/nand/spi
Frieder Schrempf a126483e82 mtd: spinand: Fix max_bad_eraseblocks_per_lun info in memorg
The 1Gb Macronix chip can have a maximum of 20 bad blocks, while
the 2Gb version has twice as many blocks and therefore the maximum
number of bad blocks is 40.

The 4Gb GigaDevice GD5F4GQ4xA has twice as many blocks as its 2Gb
counterpart and therefore a maximum of 80 bad blocks.

Fixes: 377e517b5f ("mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg")
Reported-by: Emil Lenngren <emil.lenngren@gmail.com>
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2019-07-01 14:50:20 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile mtd: spinand: add support for GigaDevice GD5FxGQ4xA 2018-12-07 10:59:23 +01:00
core.c mtd: spinand: Implement mtd->_max_bad_blocks 2019-04-08 10:21:10 +02:00
gigadevice.c mtd: spinand: Fix max_bad_eraseblocks_per_lun info in memorg 2019-07-01 14:50:20 +02:00
macronix.c mtd: spinand: Fix max_bad_eraseblocks_per_lun info in memorg 2019-07-01 14:50:20 +02:00
micron.c mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg 2019-04-08 10:21:08 +02:00
toshiba.c mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg 2019-04-08 10:21:08 +02:00
winbond.c mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg 2019-04-08 10:21:08 +02:00