aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mmci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/mmci.c')
-rw-r--r--drivers/mmc/host/mmci.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 43af791e2e45..8232e9a02d40 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -736,8 +736,15 @@ static void mmci_post_request(struct mmc_host *mmc, struct mmc_request *mrq,
736 chan = host->dma_tx_channel; 736 chan = host->dma_tx_channel;
737 dmaengine_terminate_all(chan); 737 dmaengine_terminate_all(chan);
738 738
739 if (host->dma_desc_current == next->dma_desc)
740 host->dma_desc_current = NULL;
741
742 if (host->dma_current == next->dma_chan)
743 host->dma_current = NULL;
744
739 next->dma_desc = NULL; 745 next->dma_desc = NULL;
740 next->dma_chan = NULL; 746 next->dma_chan = NULL;
747 data->host_cookie = 0;
741 } 748 }
742} 749}
743 750
@@ -1843,7 +1850,7 @@ static int mmci_runtime_resume(struct device *dev)
1843static const struct dev_pm_ops mmci_dev_pm_ops = { 1850static const struct dev_pm_ops mmci_dev_pm_ops = {
1844 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, 1851 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
1845 pm_runtime_force_resume) 1852 pm_runtime_force_resume)
1846 SET_PM_RUNTIME_PM_OPS(mmci_runtime_suspend, mmci_runtime_resume, NULL) 1853 SET_RUNTIME_PM_OPS(mmci_runtime_suspend, mmci_runtime_resume, NULL)
1847}; 1854};
1848 1855
1849static struct amba_id mmci_ids[] = { 1856static struct amba_id mmci_ids[] = {