[PATCH v2 0/1] iio: bmi323: have the peripheral consume less power

Denis Benato posted 1 patch 1 year, 5 months ago
There is a newer version of this series
drivers/iio/imu/bmi323/bmi323_core.c | 219 ++++++++++++++++++++++++++-
1 file changed, 217 insertions(+), 2 deletions(-)
[PATCH v2 0/1] iio: bmi323: have the peripheral consume less power
Posted by Denis Benato 1 year, 5 months ago
The bmi323 chip is part of handhelds PCs that are run on battery.

One of said PC is well-known for its short battery life, even in s2idle:
help mitigate that by putting the device in its lowest-consumption
state while the peripheral is unused.

Have runtime-pm suspend callback save used configuration registers
and runtime-pm resume callback restore saved registers to restore
the previous state.

Changelog:
- V2: patch 1:
	+ change patch commit message
	+ drop removal callbacks and use devm_add_action_or_reset
	+ split bmi323_init in two functions
	+ separate regs to save and relative value
	+ drop unhelpful consts ptr modifiers
	+ add a comment to explain why BMI323_FIFO_CTRL_REG is
	  being used in runtime resume

Previous patches obsoleted:
https://lore.kernel.org/all/20240811161202.19818-1-benato.denis96@gmail.com

Signed-off-by: Denis Benato <benato.denis96@gmail.com>

Denis Benato (1):
  iio: bmi323: peripheral in lowest power state on suspend

 drivers/iio/imu/bmi323/bmi323_core.c | 219 ++++++++++++++++++++++++++-
 1 file changed, 217 insertions(+), 2 deletions(-)

-- 
2.46.0