]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: rzg2l_adc: Enable runtime PM autosuspend support
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Fri, 6 Dec 2024 11:13:30 +0000 (13:13 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 11 Dec 2024 19:18:48 +0000 (19:18 +0000)
commitd7c3e3463492f50644168cbb4e443034052d1c22
tree3efd43bf4719ddd4ed41ba60f9e1d82d2faaf598
parent5d7fb2d589c56877bf220f73debd134c09e8209f
iio: adc: rzg2l_adc: Enable runtime PM autosuspend support

Enable runtime PM autosuspend support for the rzg2l_adc driver. With this
change, consecutive conversion requests will no longer cause the device to
be runtime-enabled/disabled after each request. Instead, the device will
transition based on the delay configured by the user.

This approach reduces the frequency of hardware register access during
runtime PM suspend/resume cycles, thereby saving CPU cycles.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://patch.msgid.link/20241206111337.726244-9-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/rzg2l_adc.c