]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ucsi: Report power supply changes on power opmode changes
authorJameson Thies <jthies@google.com>
Thu, 16 Oct 2025 23:59:08 +0000 (23:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 08:58:31 +0000 (10:58 +0200)
commite397f446afcffd225f9c95d3e6471595421f21c2
treebed5c5918d1866f8c107d9945910f78b1ed8468f
parentef7204a9aada8be607a1b7d7bed0c0280d0bce89
usb: typec: ucsi: Report power supply changes on power opmode changes

Report opmode changes from the PPM to the power supply class by calling
ucsi_port_psy_changed(). If the current opmode is USB PD, do not call
ucsi_port_psy_changed(). The power supply class will be updated after
requesting partner source PDOs.

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