]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ucsi: psy: Add power supply status
authorJameson Thies <jthies@google.com>
Thu, 16 Oct 2025 23:59:07 +0000 (23:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 08:58:31 +0000 (10:58 +0200)
commitef7204a9aada8be607a1b7d7bed0c0280d0bce89
treefefe90763e73dcad5956bc99128d795376c76891
parent0ec946d32ef7b1f58070cbef06bd7bdc8193c94a
usb: typec: ucsi: psy: Add power supply status

Add support for power supply status. If a port is acting as a sink
with the sink path enabled, report it is charging. If a port is
source, report it is discharging. If there is no connection or the
port hasn't enabled the sink path, report not charging.

Signed-off-by: Jameson Thies <jthies@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Tested-By: Kenneth R. Crudup <kenny@panix.com>
Link: https://patch.msgid.link/20251016235909.2092917-2-jthies@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/psy.c
drivers/usb/typec/ucsi/ucsi.h