]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-esdhc-imx: clear DMA_SEL when disable DMA mode
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 19 Feb 2020 08:25:55 +0000 (16:25 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:41 +0000 (14:35 +0100)
commit055d86e41b38e9c85410b7bb381a295e0a9a0d41
treeb99ea8128939f00656d2d4e23abc7b77a328a18e
parentb9a3aa025d958ef14201760e55a415e8de524ab3
mmc: sdhci-esdhc-imx: clear DMA_SEL when disable DMA mode

Currently, when use standard tuning, driver default disable DMA just before
send tuning command. But on i.MX8 usdhc, this is not enough. Need also clear
DMA_SEL. If not, once the DMA_SEL select AMDA2 before, even dma already disabled,
when send tuning command, usdhc will still prefetch the ADMA script from wrong
DMA address, then we will see IOMMU report some error which show lack of TLB
mapping.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1582100757-20683-7-git-send-email-haibo.chen@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c