linux/drivers/mmc/host
AngeloGioacchino Del Regno 1ee70b4c54 mmc: mtk-sd: Use readl_poll_timeout instead of open-coded polling
[ Upstream commit ffaea6ebfe ]

Replace all instances of open-coded while loops for polling registers
with calls to readl_poll_timeout() and, while at it, also fix some
possible infinite loop instances.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20211216125748.179602-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:04:50 +01:00
..
alcor.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-core.c mmc: cqhci: clear HALT state after CQE enable 2021-10-26 17:34:57 +02:00
cqhci-crypto.c
cqhci-crypto.h mmc: core: Store pointer to bio_crypt_ctx in mmc_request 2021-08-24 10:15:32 +02: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-10-26 17:28:41 +02: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.c mmc: dw_mmc: Dont wait for DRTO on Write RSP error 2021-11-18 19:15:52 +01:00
dw_mmc.h mmc: dw_mmc: Add data CRC error injection 2021-08-24 10:15:31 +02:00
jz4740_mmc.c mmc: JZ4740: remove the flush_kernel_dcache_page call in jz4740_mmc_read_data 2021-09-03 09:58:13 -07:00
Kconfig mmc: winbond: don't build on M68K 2021-10-19 12:57:11 +02:00
Makefile
meson-gx-mmc.c mmc: meson-gx: do not use memcpy_to/fromio for dram-access-quirk 2021-10-06 17:23:28 +02:00
meson-mx-sdhc-clkc.c
meson-mx-sdhc-mmc.c mmc: meson-mx-sdhc: add IRQ check 2022-01-27 11:03:43 +01:00
meson-mx-sdhc.h
meson-mx-sdio.c mmc: meson-mx-sdio: add IRQ check 2022-01-27 11:03:43 +01:00
mmc_hsq.c
mmc_hsq.h
mmc_spi.c mmc: spi: Add device-tree SPI IDs 2021-12-14 10:57:06 +01:00
mmci_qcom_dml.c
mmci_stm32_sdmmc.c mmc: mmci: stm32: clear DLYB_CR after sending tuning command 2021-12-29 12:28:57 +01:00
mmci.c mmc: mmci: De-assert reset on probe 2021-08-24 10:15:30 +02:00
mmci.h
moxart-mmc.c mmc: moxart: Fix null pointer dereference on pointer host 2021-11-18 19:17:20 +01:00
mtk-sd.c mmc: mtk-sd: Use readl_poll_timeout instead of open-coded polling 2022-01-27 11:04:50 +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 19:16:34 +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 10:57:14 +01:00
renesas_sdhi_internal_dmac.c mmc: renesas_sdhi: Refactor renesas_sdhi_probe() 2021-08-24 10:15:35 +02:00
renesas_sdhi_sys_dmac.c mmc: renesas_sdhi: Refactor renesas_sdhi_probe() 2021-08-24 10:15:35 +02:00
renesas_sdhi.h mmc: renesas_sdhi: Refactor renesas_sdhi_probe() 2021-08-24 10:15:35 +02:00
rtsx_pci_sdmmc.c mmc: rtsx_pci: Fix long reads when clock is prescaled 2021-08-24 10:15:33 +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:04:43 +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-08-27 16:30:36 +02:00
sdhci-milbeaut.c
sdhci-msm.c mmc: sdhci-msm: Use maximum possible data timeout value 2021-08-24 10:15:34 +02:00
sdhci-of-arasan.c mmc: arasan: Fix the issue in reading tap values from DT 2021-08-24 10:15:29 +02:00
sdhci-of-aspeed-test.c
sdhci-of-aspeed.c
sdhci-of-at91.c mmc: sdhci-of-at91: replace while loop with read_poll_timeout 2021-10-06 17:23:27 +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 19:16:31 +01:00
sdhci-pci-arasan.c
sdhci-pci-core.c mmc: sdhci-pci: Add PCI ID for Intel ADL 2022-01-16 09:12:43 +01:00
sdhci-pci-data.c
sdhci-pci-dwc-mshc.c
sdhci-pci-gli.c mmc: sdhci-pci-gli: GL9755: Support for CD/WP inversion on OF platforms 2022-01-27 11:04:47 +01:00
sdhci-pci-o2micro.c
sdhci-pci.h mmc: sdhci-pci: Add PCI ID for Intel ADL 2022-01-16 09:12:43 +01:00
sdhci-pic32.c
sdhci-pltfm.c
sdhci-pltfm.h
sdhci-pxav2.c
sdhci-pxav3.c
sdhci-s3c.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:28:56 +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:04:43 +01:00
sdhci.h mmc: sdhci: Fix ADMA for PAGE_SIZE >= 64KiB 2021-12-01 09:04:43 +01:00
sdricoh_cs.c
sh_mmcif.c mmc: sh_mmcif: use proper DMAENGINE API for termination 2021-08-24 10:15:30 +02:00
sunxi-mmc.c
tifm_sd.c mmc: switch from 'pci_' to 'dma_' API 2021-08-24 16:59:39 +02:00
tmio_mmc_core.c mmc: tmio: reinit card irqs in reset routine 2022-01-27 11:04:42 +01:00
tmio_mmc.c
tmio_mmc.h
toshsd.c
toshsd.h
uniphier-sd.c
usdhi6rol0.c mmc: usdhi6rol0: Implement card_busy function 2021-08-24 15:16:08 +02:00
ushc.c
via-sdmmc.c mmc: switch from 'pci_' to 'dma_' API 2021-08-24 16:59:39 +02:00
vub300.c mmc: vub300: fix control-message timeouts 2021-10-26 17:31:58 +02:00
wbsd.c
wbsd.h
wmt-sdmmc.c