]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fabd16c88674a4137b686e1f2e392ec961c34c5
tree66adafd36fe512a52e2e7b3a44cbfcde326f1269
parent5b4567b7e50438221639a35275d82cde93c4eea2
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