linux-stable/drivers/mmc/host
Rong Chen f0d2f15362 mmc: meson: Fix usage of meson_mmc_post_req()
Currently meson_mmc_post_req() is called in meson_mmc_request() right
after meson_mmc_start_cmd(). This could lead to DMA unmapping before the request
is actually finished.

To fix, don't call meson_mmc_post_req() until meson_mmc_request_done().

Signed-off-by: Rong Chen <rong.chen@amlogic.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Fixes: 79ed05e329 ("mmc: meson-gx: add support for descriptor chain mode")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220216124239.4007667-1-rong.chen@amlogic.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2022-02-28 13:18:12 +01:00
..
alcor.c
atmel-mci.c mmc: atmel-mci: Use new tasklet API 2021-02-08 13:00:31 +01:00
au1xmmc.c mmc: au1xmmc: propagate errors from platform_get_irq() 2021-12-28 17:42:51 +01:00
bcm2835.c mmc: bcm2835: stop setting chan_config->slave_id 2021-12-17 11:23:56 +05:30
cavium-octeon.c
cavium-thunderx.c
cavium.c mmc: cavium: Use '"%s...", __func__' to print function name 2021-03-30 11:42:06 +02:00
cavium.h
cb710-mmc.c mmc: cb710: Use new tasklet API 2021-02-15 10:43:23 +01:00
cb710-mmc.h
cqhci-core.c Merge branch 'fixes' into next 2021-10-26 17:37:06 +02:00
cqhci-crypto.c blk-crypto: rename blk_keyslot_manager to blk_crypto_profile 2021-10-21 10:49:32 -06:00
cqhci-crypto.h mmc: core: Store pointer to bio_crypt_ctx in mmc_request 2021-08-24 10:15:32 +02:00
cqhci.h mmc: cqhci: add cqhci_host_ops::program_key 2021-02-01 12:02:33 +01:00
davinci_mmc.c
dw_mmc-bluefield.c
dw_mmc-exynos.c mmc: dw_mmc: Do not wait for DTO in case of error 2021-12-21 13:28:41 +01:00
dw_mmc-exynos.h
dw_mmc-hi3798cv200.c mmc: dw_mmc: hi3798cv200: use common_caps 2021-12-14 21:35:25 +01:00
dw_mmc-k3.c mmc: dw_mmc-k3: use the correct HiSilicon copyright 2021-03-31 14:47:53 +02:00
dw_mmc-pci.c
dw_mmc-pltfm.c mmc: dw_mmc-pltfm: Remove unused <linux/clk.h> 2021-06-14 13:57:42 +02:00
dw_mmc-pltfm.h
dw_mmc-rockchip.c mmc: dw_mmc: rockchip: use common_caps 2021-12-14 21:35:25 +01:00
dw_mmc.c mmc: dw_mmc: Do not wait for DTO in case of error 2021-12-21 13:28:41 +01:00
dw_mmc.h mmc: dw_mmc: Do not wait for DTO in case of error 2021-12-21 13:28:41 +01:00
jz4740_mmc.c More power management updates for 5.17-rc1 2022-01-18 09:13:30 +02:00
Kconfig clk: sunxi-ng: Allow the CCU core to be built as a module 2021-11-23 10:29:05 +01:00
Makefile mmc: sdhci-pci: Remove dead code (struct sdhci_pci_data et al) 2021-10-19 12:43:21 +02:00
meson-gx-mmc.c mmc: meson: Fix usage of meson_mmc_post_req() 2022-02-28 13:18:12 +01:00
meson-mx-sdhc-clkc.c mmc: meson-mx-sdhc: Drop unused MESON_SDHC_NUM_BUILTIN_CLKS macro 2021-12-20 11:19:01 +01:00
meson-mx-sdhc-mmc.c mmc: meson-mx-sdhc: add IRQ check 2021-12-21 13:22:34 +01:00
meson-mx-sdhc.h
meson-mx-sdio.c mmc: meson-mx-sdio: add IRQ check 2021-12-21 13:22:34 +01:00
mmc_hsq.c
mmc_hsq.h
mmc_spi.c mmc: mmc_spi: Use write_or_read temporary variable in mmc_spi_data_do() 2021-12-14 21:35:26 +01:00
mmci.c mmc: mmci: increase stm32 sdmmcv2 clock max freq 2021-12-21 13:06:10 +01:00
mmci.h
mmci_qcom_dml.c
mmci_stm32_sdmmc.c mmc: mmci: add hs200 support for stm32 sdmmc 2021-12-21 13:06:15 +01:00
moxart-mmc.c moxart: fix potential use-after-free on remove path 2022-01-31 15:36:34 +01:00
mtk-sd.c mmc: mtk-sd: Assign src_clk parent to src_clk_cg for legacy DTs 2021-12-28 17:21:14 +01:00
mvsdio.c
mvsdio.h
mxcmmc.c PM: core: Remove static qualifier in DEFINE_SIMPLE_DEV_PM_OPS macro 2022-01-12 19:59:05 +01:00
mxs-mmc.c mmc: mxs-mmc: disable regulator on error and in the remove function 2021-10-19 13:02:58 +02:00
of_mmc_spi.c mmc: mmc_spi: Imply container_of() to be no-op 2021-06-14 13:57:42 +02:00
omap.c mmc: omap: Use new tasklet API 2021-02-08 13:00:31 +01:00
omap_hsmmc.c mmc: omap_hsmmc: Revert special init for wl1251 2021-12-14 21:35:24 +01:00
owl-mmc.c mmc: owl-mmc: Remove unnecessary error log 2021-04-12 13:52:47 +02:00
pxamci.c
pxamci.h
renesas_sdhi.h clk: renesas: rcar-gen3: Switch to new SD clock handling 2021-11-19 11:32:39 +01:00
renesas_sdhi_core.c bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
renesas_sdhi_internal_dmac.c mmc: renesas_sdhi: Flag non-standard SDnH handling for V3M 2021-11-19 11:32:17 +01:00
renesas_sdhi_sys_dmac.c 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 mmc: s3cmci: move to use request_irq by IRQF_NO_AUTOEN flag 2021-06-14 13:57:34 +02:00
s3cmci.h
sdhci-acpi.c mmc: sdhci-acpi: Use the new soc_intel_is_byt() helper 2021-12-01 20:14:26 +01:00
sdhci-bcm-kona.c
sdhci-brcmstb.c mmc: sdhci-brcmstb: Remove CQE quirk 2021-03-30 12:42:44 +02:00
sdhci-cadence.c
sdhci-cns3xxx.c
sdhci-dove.c
sdhci-esdhc-imx.c mmc: sdhci-esdhc-imx: Add sdhc support for i.MXRT series 2021-12-14 21:35:26 +01:00
sdhci-esdhc-mcf.c mmc: sdhci: replace mmc->parent with mmc_dev() for consistency 2021-03-30 11:42:07 +02:00
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: sdhci-of-arasan: Add intel Thunder Bay SOC support to the arasan eMMC driver 2021-10-12 10:21:17 +02:00
sdhci-of-aspeed-test.c mmc: sdhci-of-aspeed: Remove some unnecessary casts from KUnit tests 2021-06-23 16:39:08 -06:00
sdhci-of-aspeed.c mmc: sdhci-of-aspeed: Turn down a phase correction warning 2021-06-14 13:57:44 +02:00
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 mmc: sdhci-of-dwcmshc: set MMC_CAP_WAIT_WHILE_BUSY 2021-03-30 11:42:07 +02:00
sdhci-of-esdhc.c mmc: sdhci-of-esdhc: Check for error num after setting mask 2022-01-24 15:37:13 +01:00
sdhci-of-hlwd.c
sdhci-of-sparx5.c
sdhci-omap.c mmc: sdhci-omap: Fix build if CONFIG_PM_SLEEP is not set 2021-10-21 21:39:50 +02:00
sdhci-pci-arasan.c
sdhci-pci-core.c mmc: sdhci-pci: Add PCI ID for Intel ADL 2021-12-14 21:35:25 +01:00
sdhci-pci-dwc-mshc.c
sdhci-pci-gli.c mmc: sdhci-pci-gli: GL975[50]: Issue 8/16-bit MMIO reads as 32-bit reads. 2021-12-21 13:10:34 +01:00
sdhci-pci-o2micro.c mmc: sdhci-pci-o2micro: Restore the SD clock's base clock frequency 2021-12-28 17:26:41 +01:00
sdhci-pci.h mmc: sdhci-pci: Add PCI ID for Intel ADL 2021-12-14 21:35:25 +01:00
sdhci-pic32.c
sdhci-pltfm.c
sdhci-pltfm.h mmc: sdhci-pltfm: Fix linking err for sdhci-brcmstb 2021-02-01 11:13:09 +01:00
sdhci-pxav2.c
sdhci-pxav3.c
sdhci-s3c.c mmc: sdhci-s3c: drop unneeded MODULE_ALIAS 2021-10-12 10:21:18 +02:00
sdhci-spear.c
sdhci-sprd.c mmc: sdhci-sprd: Wait until DLL locked after being configured 2021-10-12 10:21:19 +02:00
sdhci-st.c mmc: sdhci-st: Remove unnecessary error log 2021-04-12 13:52:48 +02:00
sdhci-tegra.c ARM: SoC driver updates for v5.17 2022-01-10 08:13:52 -08:00
sdhci-xenon-phy.c mmc: sdhci-xenon: switch to device_* API 2020-12-11 10:08:37 +01:00
sdhci-xenon.c mmc: xenon: add AP807 compatible string 2021-02-01 11:54:45 +01:00
sdhci-xenon.h mmc: sdhci-xenon: switch to device_* API 2020-12-11 10:08:37 +01:00
sdhci.c mmc: sdhci: Fix ADMA for PAGE_SIZE >= 64KiB 2021-11-17 10:34:06 +01:00
sdhci.h mmc: sdhci: Fix ADMA for PAGE_SIZE >= 64KiB 2021-11-17 10:34:06 +01:00
sdhci_am654.c mmc: sdhci_am654: Use pm_runtime_resume_and_get() to replace open coding 2021-06-14 13:57:41 +02:00
sdhci_f_sdh30.c
sdhci_f_sdh30.h
sdricoh_cs.c
sh_mmcif.c mmc: sh_mmcif: Check for null res pointer 2022-01-24 15:37:13 +01:00
sunxi-mmc.c mmc: sunxi-mmc: Ensure host is suspended during system sleep 2021-02-01 11:54:45 +01:00
tifm_sd.c mmc: switch from 'pci_' to 'dma_' API 2021-08-24 16:59:39 +02:00
tmio_mmc.c
tmio_mmc.h mmc: renesas_sdhi: use custom mask for TMIO_MASK_ALL 2021-03-30 11:42:01 +02:00
tmio_mmc_core.c mmc: tmio: reinit card irqs in reset routine 2021-12-14 21:35:22 +01:00
toshsd.c
toshsd.h
uniphier-sd.c mmc: uniphier-sd: Fix a resource leak in the remove function 2021-03-30 11:41:59 +02:00
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 mmc: wbsd: Use new tasklet API 2021-02-08 13:00:31 +01:00
wbsd.h
wmt-sdmmc.c