]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee20e736803ca3dd2f3fe98c30d7b1a8362d2864
tree7ef24f70c7e751b725b2fa69320066ad7f8f7a7b
parentc687bb41805a1238a38a086952014d5682516d9d
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