mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mmc: uniphier-sd: fix DMA disabling
Once DMA is enabled, it is not possible to disable it because uniphier_sd_dma_endisable() always sets the DMA_ENABLE_DMASDRW bit regardless of the argument 'enable'. It should disable DMA when 'enable' is false. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Wolfram Sang <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
d3dd5db0c1
commit
b7ced87746
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ static void *uniphier_sd_priv(struct tmio_mmc_host *host)
|
|||
|
||||
static void uniphier_sd_dma_endisable(struct tmio_mmc_host *host, int enable)
|
||||
{
|
||||
sd_ctrl_write16(host, CTL_DMA_ENABLE, DMA_ENABLE_DMASDRW);
|
||||
sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? DMA_ENABLE_DMASDRW : 0);
|
||||
}
|
||||
|
||||
/* external DMA engine */
|
||||
|
|
|
|||
Loading…
Reference in a new issue