OSDN Git Service

media: mediatek: vcodec: Using pm_runtime_put instead of pm_runtime_put_sync
authorYunfei Dong <yunfei.dong@mediatek.com>
Sat, 14 Jan 2023 09:41:12 +0000 (10:41 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 06:32:54 +0000 (07:32 +0100)
commit255a4a5f1d2bc70f95ac03defab39f2a7c1fff42
treedcb9980e627e62cce52349bb3fdad1b689632162
parent809060c8a357e020010dd8f797a5efd3c5432b13
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>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_pm.c