mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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: 02f26ecf8c
("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>
This commit is contained in:
parent
6732cfd4ca
commit
b76401fc4b
1 changed files with 2 additions and 2 deletions
|
@ -1074,7 +1074,7 @@ static int marvell_nfc_hw_ecc_hmg_do_write_page(struct nand_chip *chip,
|
|||
return ret;
|
||||
|
||||
ret = marvell_nfc_wait_op(chip,
|
||||
chip->data_interface.timings.sdr.tPROG_max);
|
||||
PSEC_TO_MSEC(chip->data_interface.timings.sdr.tPROG_max));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -1494,7 +1494,7 @@ static int marvell_nfc_hw_ecc_bch_write_page(struct mtd_info *mtd,
|
|||
}
|
||||
|
||||
ret = marvell_nfc_wait_op(chip,
|
||||
chip->data_interface.timings.sdr.tPROG_max);
|
||||
PSEC_TO_MSEC(chip->data_interface.timings.sdr.tPROG_max));
|
||||
|
||||
marvell_nfc_disable_hw_ecc(chip);
|
||||
|
||||
|
|
Loading…
Reference in a new issue