Skip to content

Commit

Permalink
mtd: rawnand: Avoid accessing NV-DDR timings from legacy code
Browse files Browse the repository at this point in the history
Legacy code should not benefit from newer features, especially in
helpers that have been deprecated for a very long time. People who want
NV-DDR support must migrate their driver to the ->exec_op() API.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210505213750.257417-13-miquel.raynal@bootlin.com
  • Loading branch information
Miquel Raynal committed May 26, 2021
1 parent 4560651 commit fee9c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/nand_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static void nand_ccs_delay(struct nand_chip *chip)
* Wait tCCS_min if it is correctly defined, otherwise wait 500ns
* (which should be safe for all NANDs).
*/
if (nand_controller_can_setup_interface(chip))
if (!IS_ERR(sdr) && nand_controller_can_setup_interface(chip))
ndelay(sdr->tCCS_min / 1000);
else
ndelay(500);
Expand Down

0 comments on commit fee9c6d

Please sign in to comment.