mtd: rawnand: marvell: pass ms delay to wait_op
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 3 May 2018 02:21:28 +0000 (14:21 +1200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 4 May 2018 08:33:28 +0000 (10:33 +0200)
commitb76401fc4ba720f0f38f7b1f9d54d5c2308bc18d
tree809c655ba0eb53e464dd08ad48f7ad7954c61b71
parent6732cfd4cac514b556f36b518670af91c8bdf19a
mtd: rawnand: marvell: pass ms delay to wait_op

marvell_nfc_wait_op() expects the delay to be expressed in milliseconds
but nand_sdr_timings uses picoseconds. Use PSEC_TO_MSEC when passing
tPROG_max to marvell_nfc_wait_op().

Fixes: 02f26ecf8c772 ("mtd: nand: add reworked Marvell NAND controller driver")
Cc: stable@vger.kernel.org
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/marvell_nand.c