mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
mtd: rawnand: hynix: don't try read-retry on SLC NANDs
Some SLC NANDs like H27U4G8F2D expose a valid JEDEC ID yet they don't support the read-retry mechanism, and fail. Since SLC NANDs don't require read-retry, continue only if the bits per cell is bigger than 1. Signed-off-by: Hector Palacios <hector.palacios@digi.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
e1e6b933c5
commit
125100566b
|
|
@ -377,9 +377,9 @@ static int hynix_nand_rr_init(struct nand_chip *chip)
|
|||
|
||||
/*
|
||||
* We only support read-retry for 1xnm NANDs, and those NANDs all
|
||||
* expose a valid JEDEC ID.
|
||||
* expose a valid JEDEC ID. SLC NANDs don't require read-retry.
|
||||
*/
|
||||
if (valid_jedecid) {
|
||||
if (valid_jedecid && nanddev_bits_per_cell(&chip->base) > 1) {
|
||||
u8 nand_tech = chip->id.data[5] >> 4;
|
||||
|
||||
/* 1xnm technology */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user