From e53c51e28df34dc3d358471c95831bf90fb9aa98 Mon Sep 17 00:00:00 2001 From: Hongjin Li Date: Thu, 23 Dec 2021 09:14:20 +0800 Subject: [PATCH] video: rockchip: mpp: No need to save qos when making idle requests Playing mpeg2 video will get stuck at the last position. The reason is that qos will be saved when vdpu2 is reset. However, the pd-related clock has been turned off, causing the read and write registers to be stuck. However, when pd is switched on and off, the qos will be saved and restored by itself, and for the 3588 platform, there is no need to save qos before making an idle request. Change-Id: I048ed648a97515976f6029a9498080a1ceaa9a2e Signed-off-by: Hongjin Li --- drivers/video/rockchip/mpp/mpp_common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/rockchip/mpp/mpp_common.c b/drivers/video/rockchip/mpp/mpp_common.c index 37c8432a5aab..7e732e7ca6ab 100644 --- a/drivers/video/rockchip/mpp/mpp_common.c +++ b/drivers/video/rockchip/mpp/mpp_common.c @@ -584,10 +584,8 @@ int mpp_dev_reset(struct mpp_dev *mpp) mpp_reset_down_write(mpp->reset_group); atomic_set(&mpp->reset_request, 0); - rockchip_save_qos(mpp->dev); if (mpp->hw_ops->reset) mpp->hw_ops->reset(mpp); - rockchip_restore_qos(mpp->dev); /* Note: if the domain does not change, iommu attach will be return * as an empty operation. Therefore, force to close and then open,