platform/x86: ideapad-laptop: add "always on USB charging" control support
authorBarnabás Pőcze <pobrn@protonmail.com>
Wed, 3 Feb 2021 21:57:13 +0000 (21:57 +0000)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 09:21:43 +0000 (10:21 +0100)
commit6b49dea4fd9c539f5fea61f6a203ec1349292a26
tree66adafd36fe512a52e2e7b3a44cbfcde326f1269
parent503325f84bc0ee3a07b0831ee59d6eae84cfa695
platform/x86: ideapad-laptop: add "always on USB charging" control support

Certain models have a so-called "always on USB charging" feature,
which enables USB charging even when the computer is turned off
or suspended, and which may be controlled/queried using the
SALS/HALS ACPI methods. Expose this functionality via a new device
attribute (usb_charging). Tested on: Lenovo YOGA 520-14IKB 80X8

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-28-pobrn@protonmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Documentation/ABI/testing/sysfs-platform-ideapad-laptop
drivers/platform/x86/ideapad-laptop.c