Skip to content

Commit 7673b85

Browse files
Jinjie RuanSasha Levin
authored andcommitted
media: venus: Fix pm_runtime_set_suspended() with runtime pm enabled
commit 2a20869 upstream. It is not valid to call pm_runtime_set_suspended() for devices with runtime PM enabled because it returns -EAGAIN if it is enabled already and working. So, call pm_runtime_disable() before to fix it. Cc: [email protected] Fixes: af2c383 ("[media] media: venus: adding core part and helper functions") Signed-off-by: Jinjie Ruan <[email protected]> Reviewed-by: Bryan O'Donoghue <[email protected]> Acked-by: Stanimir Varbanov <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent dc3415f commit 7673b85

File tree

1 file changed

+1
-1
lines changed
  • drivers/media/platform/qcom/venus

1 file changed

+1
-1
lines changed

drivers/media/platform/qcom/venus/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ static int venus_probe(struct platform_device *pdev)
405405
of_platform_depopulate(dev);
406406
err_runtime_disable:
407407
pm_runtime_put_noidle(dev);
408-
pm_runtime_set_suspended(dev);
409408
pm_runtime_disable(dev);
409+
pm_runtime_set_suspended(dev);
410410
hfi_destroy(core);
411411
err_core_deinit:
412412
hfi_core_deinit(core, false);

0 commit comments

Comments
 (0)