Commit 9d3194bf authored by Miquel Raynal's avatar Miquel Raynal
Browse files

mtd: rawnand: Allow SDR timings to be nacked



This should never happen in theory and is probably a controller driver
bug. Anyway it's probably better to bail out at this point if this
happens rather than continuing the boot process.

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210505213750.257417-18-miquel.raynal@bootlin.com
parent f3fe156e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -952,13 +952,13 @@ int nand_choose_best_sdr_timings(struct nand_chip *chip,

		ret = ops->setup_interface(chip, NAND_DATA_IFACE_CHECK_ONLY,
					   iface);
		if (!ret)
		if (!ret) {
			chip->best_interface_config = iface;
			break;
		}
	}

	chip->best_interface_config = iface;

	return 0;
	return ret;
}

/**