kernel_optimize_test/drivers/mtd/nand
Vladimir Zapolskiy cf9e1672a6 mtd: nand: lpc32xx: fix invalid error handling of a requested irq
Semantics of NR_IRQS is different on machines with SPARSE_IRQ option
disabled or enabled, in the latter case IRQs are allocated starting
at least from the value specified by NR_IRQS and going upwards, so
the check of (irq >= NR_IRQ) to decide about an error code returned by
platform_get_irq() is completely invalid, don't attempt to overrule
irq subsystem in the driver.

The change fixes LPC32xx NAND MLC driver initialization on boot.

Fixes: 8cb17b5ed0 ("irqchip: Add LPC32xx interrupt controller driver")
Cc: stable@kernel.org # v4.7+
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
2017-01-04 20:50:18 +01:00
..
bcm47xxnflash
brcmnand mtd: nand: brcmnand: return error code of nand_scan_ident/tail() on error 2016-11-07 14:48:47 +01:00
gpmi-nand mtd: nand: gpmi: disable the clocks on errors 2016-10-28 09:58:05 +02:00
ams-delta.c mtd: nand: ams-delta: return error code of nand_scan() on error 2016-11-07 14:48:41 +01:00
atmel_nand_ecc.h
atmel_nand_nfc.h
atmel_nand.c mtd: nand: atmel: return error code of nand_scan_ident/tail() on error 2016-11-07 14:48:46 +01:00
au1550nd.c
bf5xx_nand.c
cafe_nand.c mtd: nand: cafe: return error code of nand_scan_ident() on error 2016-11-07 14:48:51 +01:00
cmx270_nand.c mtd: nand: cmx270: return error code of nand_scan() on error 2016-11-07 14:48:41 +01:00
cs553x_nand.c mtd: nand: cs553x: return error code of nand_scan() on error 2016-11-07 14:48:42 +01:00
davinci_nand.c
denali_dt.c mtd: nand: denali: remove unneeded <linux/slab.h> includes 2016-11-19 09:30:55 +01:00
denali_pci.c mtd: nand: denali: remove unneeded <linux/slab.h> includes 2016-11-19 09:30:55 +01:00
denali.c mtd: nand: denali: remove debug lines of __FILE__, __LINE__, __func__ 2016-11-19 09:40:42 +01:00
denali.h mtd: nand: denali: remove unused struct member totalblks, blksperchip 2016-11-19 09:38:59 +01:00
diskonchip.c
docg4.c
fsl_elbc_nand.c
fsl_ifc_nand.c
fsl_upm.c
fsmc_nand.c mtd: nand: fsmc: return error code of nand_scan_ident/tail() on error 2016-11-07 14:48:47 +01:00
gpio.c mtd: nand: gpio: return error code of nand_scan() on error 2016-11-07 14:48:43 +01:00
hisi504_nand.c mtd: nand: hisi504: return error code of nand_scan_ident() on error 2016-11-07 14:48:51 +01:00
jz4740_nand.c
jz4780_bch.c
jz4780_bch.h
jz4780_nand.c
Kconfig mtd: nand: oxnas_nand: fix build errors on arch/um, require HAS_IOMEM 2017-01-02 09:56:57 +01:00
lpc32xx_mlc.c mtd: nand: lpc32xx: fix invalid error handling of a requested irq 2017-01-04 20:50:18 +01:00
lpc32xx_slc.c mtd: nand: lpc32xx: return error code of nand_scan_ident/tail() on error 2016-11-07 14:48:48 +01:00
Makefile mtd: nand: add tango NAND flash controller support 2016-11-07 14:48:39 +01:00
mpc5121_nfc.c mtd: nand: mpc5121: return error code of nand_scan() on error 2016-11-07 14:48:43 +01:00
mtk_ecc.c mtd: mtk: avoid warning in mtk_ecc_encode 2016-10-28 10:21:23 +02:00
mtk_ecc.h
mtk_nand.c mtd: nand: mediatek: return error code of nand_scan_ident/tail() on error 2016-11-07 14:48:49 +01:00
mxc_nand.c mtd: nand: mxc: return error code of nand_scan_ident/tail() on error 2016-11-07 14:48:49 +01:00
nand_base.c This pull request contains the following notable changes: 2016-11-29 18:28:30 -08:00
nand_bbt.c
nand_bch.c
nand_ecc.c
nand_ids.c mtd: nand: add support for the TC58NVG2S0H chip 2016-10-21 17:53:08 +02:00
nand_timings.c mtd: nand: Add a few more timings to nand_sdr_timings 2016-11-07 14:48:37 +01:00
nandsim.c mtd: nand: nandsim: fix error check 2016-11-19 09:43:15 +01:00
ndfc.c
nuc900_nand.c
omap2.c mtd: nand: omap2: return error code of nand_scan_ident/tail() on error 2016-11-07 14:48:50 +01:00
omap_elm.c
orion_nand.c mtd: nand: orion: return error code of nand_scan() on error 2016-11-07 14:48:44 +01:00
oxnas_nand.c mtd: nand: Add OX820 NAND Support 2016-10-22 14:24:21 +02:00
pasemi_nand.c mtd: nand: pasemi: return error code of nand_scan() on error 2016-11-07 14:48:45 +01:00
plat_nand.c mtd: nand: plat_nand: return error code of nand_scan() on error 2016-11-07 14:48:45 +01:00
pxa3xx_nand.c mtd: nand: pxa3xx: return error code of nand_scan_ident() on error 2016-11-07 14:48:52 +01:00
qcom_nandc.c
r852.c
r852.h
s3c2410.c mtd: s3c2410: parse the device configuration from OF node 2016-11-07 14:48:36 +01:00
sh_flctl.c
sharpsl.c
sm_common.c
sm_common.h
socrates_nand.c mtd: nand: socrates: use nand_scan() for nand_scan_ident/tail() combo 2016-11-07 14:48:53 +01:00
sunxi_nand.c mtd: nand: sunxi: fix support for 512bytes ECC chunks 2016-10-21 17:52:23 +02:00
tango_nand.c mtd: nand: tango: Reset pbus to raw mode in probe 2017-01-03 11:58:35 +01:00
tmio_nand.c mtd: nand: tmio: return error code of nand_scan() on error 2016-11-07 14:48:44 +01:00
txx9ndfmc.c
vf610_nfc.c mtd: nand: vf610: return error code of nand_scan_ident/tail() on error 2016-11-07 14:48:50 +01:00
xway_nand.c mtd: nand: xway: fix build because of module functions 2017-01-02 09:44:21 +01:00