Skip to content

Commit 16d8b62

Browse files
hcodinamiquelraynal
authored andcommitted
mtd: rawnand: Fix nand_erase_op delay
NAND_OP_CMD() expects a delay parameter in nanoseconds. The delay value is wrongly given in milliseconds. Fix the conversion macro used in order to set this delay in nanoseconds. Fixes: d7a773e ("mtd: rawnand: Access SDR and NV-DDR timings through a common macro") Signed-off-by: Herve Codina <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 2e69e18 commit 16d8b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/raw/nand_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock)
18371837
NAND_OP_CMD(NAND_CMD_ERASE1, 0),
18381838
NAND_OP_ADDR(2, addrs, 0),
18391839
NAND_OP_CMD(NAND_CMD_ERASE2,
1840-
NAND_COMMON_TIMING_MS(conf, tWB_max)),
1840+
NAND_COMMON_TIMING_NS(conf, tWB_max)),
18411841
NAND_OP_WAIT_RDY(NAND_COMMON_TIMING_MS(conf, tBERS_max),
18421842
0),
18431843
};

0 commit comments

Comments
 (0)