WSL2-Linux-Kernel/drivers/mtd/nand/onenand
Jiasheng Jiang 5b1f325939 mtd: onenand: Check for error irq
[ Upstream commit 3e68f331c8 ]

For the possible failure of the platform_get_irq(), the returned irq
could be error number and will finally cause the failure of the
request_irq().
Consider that platform_get_irq() can now in certain cases return
-EPROBE_DEFER, and the consequences of letting request_irq() effectively
convert that into -EINVAL, even at probe time rather than later on.
So it might be better to check just now.

Fixes: 2c22120fbd ("MTD: OneNAND: interrupt based wait support")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220104162658.1988142-1-jiasheng@iscas.ac.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:25 +02:00
..
Kconfig mtd: nand: Drop useless 'depends on' in Kconfig 2020-06-26 08:35:03 +02:00
Makefile mtd: onenand: Rename omap2 driver to avoid a build warning 2020-01-21 20:00:35 +01:00
generic.c mtd: onenand: Check for error irq 2022-04-08 14:23:25 +02:00
onenand_base.c mtd: core: Constify buf in mtd_write_user_prot_reg() 2021-04-16 20:30:54 +02:00
onenand_bbt.c mtd: onenand: onenand_bbt: Fix expected kernel-doc formatting 2020-11-20 12:37:30 +01:00
onenand_omap2.c mtd: onenand: Use mtd->oops_panic_write as condition 2020-12-10 22:37:32 +01:00
onenand_samsung.c mtd: onenand: Fix fall-through warnings for Clang 2021-03-11 12:17:44 +01:00
samsung.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00