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: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210505213750.257417-18-miquel.raynal@bootlin.com
This commit is contained in:
Miquel Raynal 2021-05-05 23:37:45 +02:00
parent f3fe156ede
commit 9d3194bf2a
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}
/**