Skip to content

Commit 5c5b90f

Browse files
Kwiboomchehab
authored andcommitted
media: rockchip/vpu: Add missing dont_use_autosuspend() calls
Those calls are needed to restore a clean PM state when the probe fails or when the driver is unloaded such that future ->probe() calls can initialize runtime PM again. Signed-off-by: Jonas Karlman <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 76f2db0 commit 5c5b90f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ static int rockchip_vpu_probe(struct platform_device *pdev)
489489
v4l2_device_unregister(&vpu->v4l2_dev);
490490
err_clk_unprepare:
491491
clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks);
492+
pm_runtime_dont_use_autosuspend(vpu->dev);
492493
pm_runtime_disable(vpu->dev);
493494
return ret;
494495
}
@@ -509,6 +510,7 @@ static int rockchip_vpu_remove(struct platform_device *pdev)
509510
}
510511
v4l2_device_unregister(&vpu->v4l2_dev);
511512
clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks);
513+
pm_runtime_dont_use_autosuspend(vpu->dev);
512514
pm_runtime_disable(vpu->dev);
513515
return 0;
514516
}

0 commit comments

Comments
 (0)