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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2018 08:12:31 +0000 (10:12 +0200)
commit5ce38a1bcb47ae064ef81d4e23eb88fd4d0c11d4
tree74cd11d3a4f4052a488228b38797f74cc30b0e24
parent37be6761ece7db918969b55a647d5265d0ae5cb0
mtd: rawnand: marvell: pass ms delay to wait_op

commit b76401fc4ba720f0f38f7b1f9d54d5c2308bc18d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/marvell_nand.c