mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user