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

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
...@@ -952,13 +952,13 @@ int nand_choose_best_sdr_timings(struct nand_chip *chip, ...@@ -952,13 +952,13 @@ int nand_choose_best_sdr_timings(struct nand_chip *chip,
ret = ops->setup_interface(chip, NAND_DATA_IFACE_CHECK_ONLY, ret = ops->setup_interface(chip, NAND_DATA_IFACE_CHECK_ONLY,
iface); iface);
if (!ret) if (!ret) {
chip->best_interface_config = iface;
break; break;
}
} }
chip->best_interface_config = iface; return ret;
return 0;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment