mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
media: mediatek: vcodec: Using pm_runtime_put instead of pm_runtime_put_sync
pm_runtime_put will set RPM_ASYNC flag then queue an idle-notification request again, won't return error immediately until current request is scheduled. But pm_runtime_put_sync run the ->runtime_idle() callback directly, return error immediately no matter whether current request is scheduled. Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
809060c8a3
commit
255a4a5f1d
1 changed files with 3 additions and 3 deletions
|
@ -72,9 +72,9 @@ static void mtk_vcodec_dec_pw_off(struct mtk_vcodec_pm *pm)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = pm_runtime_put_sync(pm->dev);
|
ret = pm_runtime_put(pm->dev);
|
||||||
if (ret)
|
if (ret && ret != -EAGAIN)
|
||||||
mtk_v4l2_err("pm_runtime_put_sync fail %d", ret);
|
mtk_v4l2_err("pm_runtime_put fail %d", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mtk_vcodec_dec_clock_on(struct mtk_vcodec_pm *pm)
|
static void mtk_vcodec_dec_clock_on(struct mtk_vcodec_pm *pm)
|
||||||
|
|
Loading…
Reference in a new issue