]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: Fix nand_erase_op delay
authorHerve Codina <herve.codina@bootlin.com>
Fri, 19 Nov 2021 15:03:13 +0000 (16:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Dec 2021 09:30:12 +0000 (10:30 +0100)
commit1464495075b1771fb237859fad5d4386e9b70c4a
treed551fa15ea861b82e43553dd0833b5beda4669dc
parent95c3219173bc1a33dcb4a25826dc94d4e5150326
mtd: rawnand: Fix nand_erase_op delay

[ Upstream commit 29961aa52affddfb9a5a9ca934611bce67f50d50 ]

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: a8267505ebd0 ("mtd: rawnand: Access SDR and NV-DDR timings through a common macro")
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211119150316.43080-2-herve.codina@bootlin.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/nand_base.c