toshiba_acpi: Add support for USB Sleep and Charge function
authorAzael Avalos <coproscefalo@gmail.com>
Mon, 19 Jan 2015 01:30:22 +0000 (18:30 -0700)
committerDarren Hart <dvhart@linux.intel.com>
Fri, 23 Jan 2015 17:08:19 +0000 (09:08 -0800)
commite26ffe5124189bce99235fee403a71b719e10b6a
tree7ef24f70c7e751b725b2fa69320066ad7f8f7a7b
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
toshiba_acpi: Add support for USB Sleep and Charge function

Newer Toshiba models now come with a feature called Sleep and Charge,
where the computer USB ports remain powered when the computer is
asleep or turned off.

This patch adds support to such feature, creating a sysfs entry
called "usb_sleep_charge" to set the desired charging mode or to
disable it.

The sysfs entry accepts three parameters, 0, 1 and 2, beign disabled,
alternate and auto respectively.

The auto mode stands for USB conformant devices (which most are), and
the alternate mode stands for those non USB conformant devices that
require more power.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_acpi.c
This page took 0.024688 seconds and 5 git commands to generate.