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

Commit 0d99cce8 authored by Vinod Koul's avatar Vinod Koul Committed by Greg Kroah-Hartman
Browse files

dmaengine: Revert "dmaengine: shdma: Fix runtime PM imbalance on error"



commit d143f939a95696d38ff800ada14402fa50ebbd6c upstream.

This reverts commit 455896c53d5b ("dmaengine: shdma: Fix runtime PM
imbalance on error") as the patch wrongly reduced the count on error and
did not bail out. So drop the count by reverting the patch .

Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9e6980c6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -115,10 +115,8 @@ static dma_cookie_t shdma_tx_submit(struct dma_async_tx_descriptor *tx)
		ret = pm_runtime_get(schan->dev);

		spin_unlock_irq(&schan->chan_lock);
		if (ret < 0) {
		if (ret < 0)
			dev_err(schan->dev, "%s(): GET = %d\n", __func__, ret);
			pm_runtime_put(schan->dev);
		}

		pm_runtime_barrier(schan->dev);