]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: riic: Enable runtime PM autosuspend support
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 20 Aug 2024 10:19:11 +0000 (13:19 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 9 Sep 2024 22:34:00 +0000 (00:34 +0200)
commit10d5c8845d36ca71212f588849532c5f484111e4
treee642dda9c5a4d6c1ab967fb3f5278bc099fcf44a
parent3149a9cf36cf17411e8564e22ec698b5aa2175c5
i2c: riic: Enable runtime PM autosuspend support

Enable runtime PM autosuspend support for the RIIC driver. With this, in
case there are consecutive xfer requests the device wouldn't be runtime
enabled/disabled after each consecutive xfer but after the
the delay configured by user. With this, we can avoid touching hardware
registers involved in runtime PM suspend/resume saving in this way some
cycles. The default chosen autosuspend delay is zero to keep the
previous driver behavior.

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-riic.c