diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-05-05 23:37:45 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-05-26 10:52:42 +0200 |
commit | 9d3194bf2aef81c04177ab6bbe50406aa8d550dc (patch) | |
tree | 1003a0a1cf52d53187131b2d077eb761dd87e2e4 /drivers/mtd | |
parent | mtd: rawnand: Support enabling NV-DDR through SET_FEATURES (diff) | |
download | linux-9d3194bf2aef81c04177ab6bbe50406aa8d550dc.tar.xz linux-9d3194bf2aef81c04177ab6bbe50406aa8d550dc.zip |
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
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/raw/nand_base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index cfe8257bf175..e20551cb3ce5 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -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; } /** |