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:
parent
f3fe156ede
commit
9d3194bf2a
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue