From 9cbe1b88c44470c4fbd7bd2300a51073dbc93a21 Mon Sep 17 00:00:00 2001 From: Ding Wei Date: Mon, 11 Mar 2024 14:40:33 +0800 Subject: [PATCH] video: rockchip: mpp: rk3576: Add hack after probe finish when pm_domains set alway_on, pm_rutime_resume may accuss before rkvdec2_probe. thus, dec->fix is null, and it will not trigger rk3576_workaround_run. Change-Id: Ie6cd865a0075ed775fbe127447b7e679048ef4ce Signed-off-by: Ding Wei --- drivers/video/rockchip/mpp/mpp_rkvdec2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/rockchip/mpp/mpp_rkvdec2.c b/drivers/video/rockchip/mpp/mpp_rkvdec2.c index 5391913460bb..1d8eae761489 100644 --- a/drivers/video/rockchip/mpp/mpp_rkvdec2.c +++ b/drivers/video/rockchip/mpp/mpp_rkvdec2.c @@ -1916,6 +1916,10 @@ static int rkvdec2_probe_default(struct platform_device *pdev) dev_info(dev, "probing finish\n"); + /* work workaround */ + if (dec->fix && mpp->hw_ops->hack_run) + mpp->hw_ops->hack_run(mpp); + return ret; }