Skip to content

RFC Add "scope" to power supplies

Jeremy Fitzhardinge linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest4 patches 8 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4power_supply: add SCOPE attribute to power suppliesdrivers/power/power_supply_sysfs.c include/linux/power_supply.h+13 -00 replies
2/4power_supply: allow a power supply to explicitly point to powered devicedrivers/power/power_supply_core.c include/linux/power_supply.h+8 -00 replies
3/4power_supply: add scope properties to some self-powered HID devicesdrivers/hid/hid-wacom.c drivers/hid/hid-wiimote.c+17 -30 replies
4/4power_supply: add "powers" links to self-powered HID devicesdrivers/hid/hid-wacom.c drivers/hid/hid-wiimote.c+6 -00 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri Kosina
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH RFC V2 0/4] Add "scope" to power supplies

This series adds a "scope" attribute to power supplies, to indicate whether it powers the whole system ("System") or just some subset of the devices ("Device"). This allows upowerd to distinguish between system-wide power supplies and self-powered devices such as cordless mice.

This series also adds a "powers" link to power supplies, so that if they're scope=Device, they can specifically indicate which device tree they power.

Updates since last post:
- Add more complete documentation to scope and "powers" links
- Remove unnecessary scopes on System power supplies
- Make HID battery supplies Device, and add "powers" pointers for them.

This can also be pulled from:
git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git power-supply-scope

Jeremy Fitzhardinge (4):
power_supply: add SCOPE attribute to power supplies
power_supply: allow a power supply to explicitly point to powered
device
power_supply: add scope properties to some self-powered HID devices
power_supply: add "powers" links to self-powered HID devices

 drivers/hid/hid-wacom.c            |   16 ++++++++++++++--
 drivers/hid/hid-wiimote.c          |   10 +++++++++-
 drivers/power/power_supply_core.c  |    7 +++++++
 drivers/power/power_supply_sysfs.c |    6 ++++++
 include/linux/power_supply.h       |    8 ++++++++
 5 files changed, 44 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.7.3