Skip to content

RFC Virtual Battery Driver

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3power: Add virtual battery driverdrivers/power/Kconfig drivers/power/Makefile drivers/power/virtual_battery.c+355 -00 replies
2/3power: virtual battery driver tweaksdrivers/power/virtual_battery.c+42 -110 replies
3/3power: Fixup stack usage in vritual battery driverdrivers/power/virtual_battery.c+41 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3][RFC] Virtual Battery Driver

For awhile now, there has been an out of tree virtual battery driver that was created by Masashi YOKOTA <[email protected]> that folks have been using to test battery UI functionality on boards that don't actually have battery hardware.

More recently the power supply test driver (test_power.c) has been merged.

Both drivers provide somwhat similar functionality, although the virtual battery driver allows settings such as health and charge state to be manipulated at runtime via module params.

So while I'm not proposing to merge this patch set as is, I wanted to send it out for comment to see if there would be some interest or objections for merging some of the functionality from the virtual battery driver into the test_power driver?

Thoughts?

thanks
-john

CC Anton Vorontsov <[email protected]>
CC Akihiro MAEDA <[email protected]>
CC Masashi YOKOTA <[email protected]>

Akihiro MAEDA (1):
power: virtual battery driver tweaks

John Stultz (1):
power: Fixup stack usage in vritual battery driver

Masashi YOKOTA (1):
power: Add virtual battery driver

 drivers/power/Kconfig           |    5 +
 drivers/power/Makefile          |    1 +
 drivers/power/virtual_battery.c |  400 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 406 insertions(+), 0 deletions(-)
 create mode 100644 drivers/power/virtual_battery.c
Signature · 1 line
1.7.3.2.146.gca209