diff options
author | 2025-08-10 15:33:27 +0300 | |
---|---|---|
committer | 2025-08-16 14:52:20 +0100 | |
commit | a3c6eabe3bbd6b0e7124d68b2d3bc32fed17362e (patch) | |
tree | ea2deec1711524c7a7d034955c2f5671272c4396 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | iio: adc: ad7380: fix missing max_conversion_rate_hz on adaq4381-4 (diff) | |
download | wireguard-linux-a3c6eabe3bbd6b0e7124d68b2d3bc32fed17362e.tar.xz wireguard-linux-a3c6eabe3bbd6b0e7124d68b2d3bc32fed17362e.zip |
iio: adc: rzg2l: Cleanup suspend/resume path
There is no need to manually track the runtime PM status in the driver.
The pm_runtime_force_suspend() and pm_runtime_force_resume() functions
already call pm_runtime_status_suspended() to check the runtime PM state.
Additionally, avoid calling pm_runtime_put_autosuspend() during the
suspend/resume path, as this would decrease the usage counter of a
potential user that had the ADC open before the suspend/resume cycle.
Fixes: 563cf94f9329 ("iio: adc: rzg2l_adc: Add suspend/resume support")
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20250810123328.800104-2-claudiu.beznea.uj@bp.renesas.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions