Files
linux/Documentation/driver-api
Sakari Ailus d9f8489c43 media: Documentation: Use right function to test device power state
Tell driver authors to use pm_runtime_get_if_active() instead of
pm_runtime_get_if_in_use() to check the device's power state in the s_ctrl
callback. pm_runtime_get_if_active() is the right function to use here
since it returns non-zero if the device is powered on rather than its
PM runtime usage_count is non-zero.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
2026-05-06 12:40:10 +03:00
..
2023-04-26 15:43:19 -07:00
2024-09-05 12:13:39 +02:00
2024-05-02 10:02:29 -06:00
2026-02-22 17:38:21 -05:00
2025-11-07 11:12:03 +01:00
2026-03-10 07:51:30 -04:00
2026-01-11 06:09:11 -10:00
2025-05-19 09:04:21 -06:00
2023-07-24 12:12:24 +02:00
2024-05-10 11:15:21 -06:00
2024-05-02 10:02:29 -06:00