diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-02-15 12:08:45 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-03-06 16:30:25 +0100 |
commit | 75dce6a941e3f16c3b4878c8b2f46d5d07c619ce (patch) | |
tree | 96f09bb5f56394112c608309bda600d3dbc9c316 /Documentation | |
parent | mtd: rawnand: meson: initialize struct with zeroes (diff) | |
download | linux-75dce6a941e3f16c3b4878c8b2f46d5d07c619ce.tar.xz linux-75dce6a941e3f16c3b4878c8b2f46d5d07c619ce.zip |
mtd: nand: mxic-ecc: Fix mxic_ecc_data_xfer_wait_for_completion() when irq is used
wait_for_completion_timeout() and readl_poll_timeout() don't handle their
return value the same way.
wait_for_completion_timeout() returns 0 on time out (and >0 in all other
cases)
readl_poll_timeout() returns 0 on success and -ETIMEDOUT upon a timeout.
In order for the error handling path to work in both cases, the logic
against wait_for_completion_timeout() needs to be inverted.
Fixes: 48e6633a9fa2 ("mtd: nand: mxic-ecc: Add Macronix external ECC engine support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/beddbc374557e44ceec897e68c4a5d12764ddbb9.1676459308.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions