06 Jan, 2012

9 commits


04 Jan, 2012

10 commits


10 Dec, 2011

4 commits

  • Make the relationship between the Wiimote and Wacom self-powered HID
    devices and their power supply explicit by adding a "powers" link.

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Jiri Kosina

    Jeremy Fitzhardinge
     
  • The Wacom and Wiimote HID drivers register power supplies for themselves
    to indicate their battery levels. Make those power supplies device scope.

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Jiri Kosina

    Jeremy Fitzhardinge
     
  • If a power supply has a scope of "Device", then allow the power supply
    to indicate what device it actually powers. This is represented in the
    power supply's sysfs directory as a symlink named "powers", which points to
    the sysfs directory of the powered device.

    If the device has children, then the sub-devices are also powered by
    the same power supply.

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Richard Hughes

    Jeremy Fitzhardinge
     
  • This adds a "scope" attribute to a power_supply, which indicates how
    much of the system it powers. It appears in sysfs as "scope" or in
    the uevent file as POWER_SUPPLY_SCOPE=. There are presently three
    possible values:
    Unknown - unknown power topology
    System - the power supply powers the whole system
    Device - it powers a specific device, or tree of devices

    A power supply which doesn't have a "scope" attribute should be assumed to
    have "System" scope.

    In general, usermode should assume that loss of all System-scoped power
    supplies will power off the whole system, but any single one is sufficient
    to power the system.

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Richard Hughes

    Jeremy Fitzhardinge
     

26 Nov, 2011

17 commits