diff options
author | Linus Torvalds | 2021-04-13 14:01:34 -0700 |
---|---|---|
committer | Linus Torvalds | 2021-04-13 14:01:34 -0700 |
commit | eebe426d32e1a10ac7c35f8ffab5f818c32a2454 (patch) | |
tree | dc3b49f2f42a8e41b4618b15aeb3919d2bc34e1d | |
parent | 89698becf06d341a700913c3d89ce2a914af69a2 (diff) | |
parent | 2fb164f0ce95e504e2688b4f984893c29ebd19ab (diff) |
Merge tag 'fixes-for-5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
Pull MTD fix from Richard Weinberger:
"Fix WAITRDY break condition and timeout in mtk nand driver"
* tag 'fixes-for-5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
mtd: rawnand: mtk: Fix WAITRDY break condition and timeout
-rw-r--r-- | drivers/mtd/nand/raw/mtk_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/mtk_nand.c b/drivers/mtd/nand/raw/mtk_nand.c index 57f1f1708994..5c5c92132287 100644 --- a/drivers/mtd/nand/raw/mtk_nand.c +++ b/drivers/mtd/nand/raw/mtk_nand.c @@ -488,8 +488,8 @@ static int mtk_nfc_exec_instr(struct nand_chip *chip, return 0; case NAND_OP_WAITRDY_INSTR: return readl_poll_timeout(nfc->regs + NFI_STA, status, - status & STA_BUSY, 20, - instr->ctx.waitrdy.timeout_ms); + !(status & STA_BUSY), 20, + instr->ctx.waitrdy.timeout_ms * 1000); default: break; } |