diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2024-12-20 15:41:21 +0100 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2025-02-15 15:22:37 +0100 |
| commit | 69dea0ed84611b2b83f4f5fb4f5a1ec4b6bc902d (patch) | |
| tree | 3fee48fa2336b9f0200698cf301273f49589b991 /tools/perf/scripts/python | |
| parent | c8525bd0a714e425b54d19f82bcfc95ea3b8b742 (diff) | |
| download | linux-69dea0ed84611b2b83f4f5fb4f5a1ec4b6bc902d.tar.gz linux-69dea0ed84611b2b83f4f5fb4f5a1ec4b6bc902d.zip | |
media: ov08x40: Properly turn sensor on/off when runtime-suspended
Commit df1ae2251a50 ("media: ov08x40: Add OF probe support") added support
for a reset GPIO, regulators and a clk provider controlled through new
ov08x40_power_off() and ov08x40_power_on() functions.
But it missed adding a pm ops structure to call these functions on
runtime suspend/resume. Add the missing pm ops and only call
ov08x40_power_off() on remove() when not already runtime-suspended
to avoid unbalanced regulator / clock disable calls.
Fixes: df1ae2251a50 ("media: ov08x40: Add OF probe support")
Cc: stable@vger.kernel.org
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
