video: rockchip: mpp: issue for power off

when have task in running_list, it should be power off later.

Change-Id: I6df2d8ed11a05eba5753d78800c2175fc99ad0f1
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
Ding Wei
2021-02-21 15:14:27 +08:00
committed by Tao Huang
parent 8168344c4a
commit c8e635088d

View File

@@ -212,7 +212,8 @@ int mpp_power_off(struct mpp_dev *mpp)
mpp->hw_ops->clk_off(mpp);
pm_relax(mpp->dev);
if (mpp_taskqueue_get_pending_task(mpp->queue)) {
if (mpp_taskqueue_get_pending_task(mpp->queue) ||
mpp_taskqueue_get_running_task(mpp->queue)) {
pm_runtime_mark_last_busy(mpp->dev);
pm_runtime_put_autosuspend(mpp->dev);
} else {