aboutsummaryrefslogtreecommitdiff
path: root/drivers/dma/mediatek
diff options
context:
space:
mode:
authorGravatar Johan Hovold <johan+linaro@kernel.org> 2023-06-22 09:51:50 +0200
committerGravatar Vinod Koul <vkoul@kernel.org> 2023-07-12 22:24:01 +0530
commitecc3cfc31f33c88cb9fa8fd1fcfc8a86e4b7b18b (patch)
tree60df5dab296e25cf78f53f8472bde7f2c131a6e0 /drivers/dma/mediatek
parentdt-bindings: dma: qcom,bam: require one of control methods (diff)
downloadlinux-ecc3cfc31f33c88cb9fa8fd1fcfc8a86e4b7b18b.tar.gz
linux-ecc3cfc31f33c88cb9fa8fd1fcfc8a86e4b7b18b.tar.bz2
linux-ecc3cfc31f33c88cb9fa8fd1fcfc8a86e4b7b18b.zip
dmaengine: mediatek: drop bogus pm_runtime_set_active()
The runtime PM state must be updated while runtime PM is disabled for the change to take effect. Drop the bogus pm_runtime_set_active() which left the PM state set to suspended (as it should be or the clock would not be enabled when the device is resumed). Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20230622075150.885-1-johan+linaro@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/mediatek')
-rw-r--r--drivers/dma/mediatek/mtk-uart-apdma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/mediatek/mtk-uart-apdma.c b/drivers/dma/mediatek/mtk-uart-apdma.c
index a1517ef1f4a0..92864c9371a3 100644
--- a/drivers/dma/mediatek/mtk-uart-apdma.c
+++ b/drivers/dma/mediatek/mtk-uart-apdma.c
@@ -551,7 +551,6 @@ static int mtk_uart_apdma_probe(struct platform_device *pdev)
}
pm_runtime_enable(&pdev->dev);
- pm_runtime_set_active(&pdev->dev);
rc = dma_async_device_register(&mtkd->ddev);
if (rc)