Skip to content

Commit 1251005

Browse files
hpalaciomiquelraynal
authored andcommitted
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 <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent e1e6b93 commit 1251005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mtd/nand/raw/nand_hynix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ static int hynix_nand_rr_init(struct nand_chip *chip)
377377

378378
/*
379379
* We only support read-retry for 1xnm NANDs, and those NANDs all
380-
* expose a valid JEDEC ID.
380+
* expose a valid JEDEC ID. SLC NANDs don't require read-retry.
381381
*/
382-
if (valid_jedecid) {
382+
if (valid_jedecid && nanddev_bits_per_cell(&chip->base) > 1) {
383383
u8 nand_tech = chip->id.data[5] >> 4;
384384

385385
/* 1xnm technology */

0 commit comments

Comments
 (0)