linux/drivers/mmc/host
Sergey Shtylyov 3253cf0914 mmc: meson-mx-sdio: add IRQ check
[ Upstream commit 8fc9a77bc6 ]

The driver neglects to check the result of platform_get_irq()'s call and
blithely passes the negative error codes to devm_request_threaded_irq()
(which takes *unsigned* IRQ #), causing it to fail with -EINVAL, overriding
an original error code. Stop calling devm_request_threaded_irq() with the
invalid IRQ #s.

Fixes: ed80a13bb4 ("mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoC")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20211217202717.10041-3-s.shtylyov@omp.ru
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 10:53:58 +01:00
..
alcor.c
android-goldfish.c
atmel-mci.c
au1xmmc.c
bcm2835.c
cavium-octeon.c
cavium-thunderx.c
cavium.c
cavium.h
cb710-mmc.c
cb710-mmc.h
cqhci.c mmc: cqhci: clear HALT state after CQE enable 2021-11-02 19:48:19 +01:00
cqhci.h
davinci_mmc.c
dw_mmc-bluefield.c
dw_mmc-exynos.c mmc: dw_mmc: exynos: fix the finding clock sample value 2021-11-02 19:48:20 +01:00
dw_mmc-exynos.h
dw_mmc-hi3798cv200.c
dw_mmc-k3.c
dw_mmc-pci.c
dw_mmc-pltfm.c
dw_mmc-pltfm.h
dw_mmc-rockchip.c
dw_mmc-zx.c
dw_mmc-zx.h
dw_mmc.c mmc: dw_mmc: Dont wait for DRTO on Write RSP error 2021-11-18 14:03:37 +01:00
dw_mmc.h
jz4740_mmc.c
Kconfig mmc: winbond: don't build on M68K 2021-11-18 14:03:42 +01:00
Makefile
meson-gx-mmc.c mmc: meson-gx: do not use memcpy_to/fromio for dram-access-quirk 2021-10-13 10:04:23 +02:00
meson-mx-sdhc-clkc.c
meson-mx-sdhc-mmc.c mmc: meson-mx-sdhc: add IRQ check 2022-01-27 10:53:58 +01:00
meson-mx-sdhc.h
meson-mx-sdio.c mmc: meson-mx-sdio: add IRQ check 2022-01-27 10:53:58 +01:00
mmc_hsq.c
mmc_hsq.h
mmc_spi.c
mmci_qcom_dml.c
mmci_stm32_sdmmc.c mmc: mmci: stm32: clear DLYB_CR after sending tuning command 2021-12-29 12:26:04 +01:00
mmci.c
mmci.h
moxart-mmc.c mmc: moxart: Fix null pointer dereference on pointer host 2021-11-18 14:04:32 +01:00
mtk-sd.c mmc: mtk-sd: Add wait dma stop done flow 2021-11-18 14:03:37 +01:00
mvsdio.c
mvsdio.h
mxcmmc.c
mxs-mmc.c mmc: mxs-mmc: disable regulator on error and in the remove function 2021-11-18 14:04:08 +01:00
of_mmc_spi.c
omap_hsmmc.c
omap.c
owl-mmc.c
pxamci.c
pxamci.h
renesas_sdhi_core.c mmc: renesas_sdhi: initialize variable properly when tuning 2021-12-14 11:32:39 +01:00
renesas_sdhi_internal_dmac.c
renesas_sdhi_sys_dmac.c
renesas_sdhi.h
rtsx_pci_sdmmc.c mmc: rtsx_pci: Fix long reads when clock is prescaled 2021-09-18 13:40:32 +02:00
rtsx_usb_sdmmc.c
s3cmci.c
s3cmci.h
sdhci_am654.c
sdhci_f_sdh30.c
sdhci_f_sdh30.h
sdhci-acpi.c
sdhci-bcm-kona.c
sdhci-brcmstb.c
sdhci-cadence.c
sdhci-cns3xxx.c
sdhci-dove.c
sdhci-esdhc-imx.c mmc: sdhci-esdhc-imx: disable CMDQ support 2021-12-01 09:19:01 +01:00
sdhci-esdhc-mcf.c
sdhci-esdhc.h
sdhci-iproc.c Revert "mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711" 2021-09-03 10:09:25 +02:00
sdhci-milbeaut.c
sdhci-msm.c mmc: sdhci-msm: Update the software timeout value for sdhc 2021-08-26 08:35:53 -04:00
sdhci-of-arasan.c mmc: sdhci-of-arasan: Check return value of non-void funtions 2021-09-18 13:40:32 +02:00
sdhci-of-aspeed.c
sdhci-of-at91.c mmc: sdhci-of-at91: replace while loop with read_poll_timeout 2021-10-13 10:04:23 +02:00
sdhci-of-dwcmshc.c
sdhci-of-esdhc.c
sdhci-of-hlwd.c
sdhci-of-sparx5.c
sdhci-omap.c mmc: sdhci-omap: Fix context restore 2021-11-18 14:04:07 +01:00
sdhci-pci-arasan.c
sdhci-pci-core.c mmc: sdhci-pci: Add PCI ID for Intel ADL 2022-01-16 09:14:23 +01:00
sdhci-pci-data.c
sdhci-pci-dwc-mshc.c
sdhci-pci-gli.c
sdhci-pci-o2micro.c
sdhci-pci.h mmc: sdhci-pci: Add PCI ID for Intel ADL 2022-01-16 09:14:23 +01:00
sdhci-pic32.c
sdhci-pltfm.c
sdhci-pltfm.h
sdhci-pxav2.c
sdhci-pxav3.c
sdhci-s3c.c
sdhci-sirf.c
sdhci-spear.c
sdhci-sprd.c
sdhci-st.c
sdhci-tegra.c mmc: sdhci-tegra: Fix switch to HS400ES mode 2021-12-29 12:26:03 +01:00
sdhci-xenon-phy.c
sdhci-xenon.c
sdhci-xenon.h
sdhci.c mmc: sdhci: Fix ADMA for PAGE_SIZE >= 64KiB 2021-12-01 09:19:01 +01:00
sdhci.h mmc: sdhci: Fix ADMA for PAGE_SIZE >= 64KiB 2021-12-01 09:19:01 +01:00
sdricoh_cs.c
sh_mmcif.c
sunxi-mmc.c
tifm_sd.c
tmio_mmc_core.c
tmio_mmc.c
tmio_mmc.h
toshsd.c
toshsd.h
uniphier-sd.c
usdhi6rol0.c
ushc.c
via-sdmmc.c
vub300.c mmc: vub300: fix control-message timeouts 2021-11-02 19:48:19 +01:00
wbsd.c
wbsd.h
wmt-sdmmc.c