Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42365cf0 authored by Narayanan G's avatar Narayanan G Committed by Fabio Baltieri
Browse files

dmaengine: ste_dma40: don't check for pm_runtime_suspended()



The check for runtime suspend is not needed during a regular suspend, as
the framework takes care of this.  This fixes the issue of DMA driver
not letting the system to go to deepsleep in the first attempt.

Signed-off-by: default avatarNarayanan G <narayanan.gopalakrishnan@stericsson.com>
Reviewed-by: default avatarRabin Vincent <rabin.vincent@stericsson.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarFabio Baltieri <fabio.baltieri@linaro.org>
parent 92bb6cdb
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -2782,8 +2782,6 @@ static int dma40_pm_suspend(struct device *dev)
	struct platform_device *pdev = to_platform_device(dev);
	struct platform_device *pdev = to_platform_device(dev);
	struct d40_base *base = platform_get_drvdata(pdev);
	struct d40_base *base = platform_get_drvdata(pdev);
	int ret = 0;
	int ret = 0;
	if (!pm_runtime_suspended(dev))
		return -EBUSY;


	if (base->lcpa_regulator)
	if (base->lcpa_regulator)
		ret = regulator_disable(base->lcpa_regulator);
		ret = regulator_disable(base->lcpa_regulator);