mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
video: rockchip: mpp: fix rk3036 vdpu soft reset issue
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com> Change-Id: I38b3beaf0e6bcc5ef0e63614eb8c5c27fa37a1ca
This commit is contained in:
parent
c3239eb297
commit
4bee1c9a00
|
|
@ -1562,9 +1562,14 @@ static int rkvdec_3036_set_grf(struct mpp_dev *mpp)
|
|||
|
||||
list_for_each_entry_safe(loop, n, &queue->dev_list, queue_link) {
|
||||
if (test_bit(loop->var->device_type, &queue->dev_active_flags)) {
|
||||
mpp_set_grf(loop->grf_info);
|
||||
if (loop->hw_ops->clk_on)
|
||||
loop->hw_ops->clk_on(loop);
|
||||
if (loop->hw_ops->reset)
|
||||
loop->hw_ops->reset(loop);
|
||||
rockchip_iommu_disable(loop->dev);
|
||||
if (loop->hw_ops->clk_off)
|
||||
loop->hw_ops->clk_off(loop);
|
||||
clear_bit(loop->var->device_type, &queue->dev_active_flags);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -751,9 +751,14 @@ static int vdpu_3036_set_grf(struct mpp_dev *mpp)
|
|||
|
||||
list_for_each_entry_safe(loop, n, &queue->dev_list, queue_link) {
|
||||
if (test_bit(loop->var->device_type, &queue->dev_active_flags)) {
|
||||
mpp_set_grf(loop->grf_info);
|
||||
if (loop->hw_ops->clk_on)
|
||||
loop->hw_ops->clk_on(loop);
|
||||
if (loop->hw_ops->reset)
|
||||
loop->hw_ops->reset(loop);
|
||||
rockchip_iommu_disable(loop->dev);
|
||||
if (loop->hw_ops->clk_off)
|
||||
loop->hw_ops->clk_off(loop);
|
||||
clear_bit(loop->var->device_type, &queue->dev_active_flags);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user