OrangePi_CM5/drivers/mtd
Miaoqian Lin 4da421035b mtd: rawnand: Fix return value check of wait_for_completion_timeout
[ Upstream commit 084c16ab423a8890121b902b405823bfec5b4365 ]

wait_for_completion_timeout() returns unsigned long not int.
It returns 0 if timed out, and positive if completed.
The check for <= 0 is ambiguous and should be == 0 here
indicating timeout which is the only error case.

Fixes: 83738d87e3 ("mtd: sh_flctl: Add DMA capabilty")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220412083435.29254-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-09 09:05:02 +02:00
..
chips mtd: fixup CFI on ixp4xx 2022-01-20 09:17:52 +01:00
devices
…
hyperbus mtd: hyperbus: rpc-if: fix bug in rpcif_hb_remove 2022-01-27 10:53:50 +01:00
lpddr
…
maps mtd: fixup CFI on ixp4xx 2022-01-20 09:17:52 +01:00
nand mtd: rawnand: Fix return value check of wait_for_completion_timeout 2022-05-09 09:05:02 +02:00
parsers
…
spi-nor
…
tests
…
ubi ubi: fastmap: Return error code if memory allocation fails in add_aeb() 2022-04-08 14:40:43 +02:00
Kconfig
…
Makefile
…
ftl.c
…
inftlcore.c
…
inftlmount.c
…
mtd_blkdevs.c
…
mtdblock.c
…
mtdblock_ro.c
…
mtdchar.c
…
mtdconcat.c
…
mtdcore.c mtd: core: don't remove debugfs directory if device is in use 2021-11-18 14:04:23 +01:00
mtdcore.h
…
mtdoops.c
…
mtdpart.c mtd: Fixed breaking list in __mtd_del_partition. 2022-01-27 10:53:41 +01:00
mtdpstore.c
…
mtdsuper.c
…
mtdswap.c
…
nftlcore.c
…
nftlmount.c
…
rfd_ftl.c
…
sm_ftl.c
…
sm_ftl.h
…
ssfdc.c
…