Commit 12510056 authored by Hector Palacios's avatar Hector Palacios Committed by Miquel Raynal
Browse files

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: default avatarHector Palacios <hector.palacios@digi.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent e1e6b933
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */