Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: typec: ucsi: Report power supply change on sink path change

Update the UCSI interface driver to report a power supply change when
the PPM sets the Sink Path Change bit.

Signed-off-by: Jameson Thies <jthies@google.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Tested-By: Kenneth R. Crudup <kenny@panix.com>
Link: https://patch.msgid.link/20251016235909.2092917-4-jthies@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jameson Thies and committed by
Greg Kroah-Hartman
26c3af0c e397f446

+2 -1
+1 -1
drivers/usb/typec/ucsi/ucsi.c
··· 1293 1293 if (change & UCSI_CONSTAT_CAM_CHANGE) 1294 1294 ucsi_partner_task(con, ucsi_check_altmodes, 1, HZ); 1295 1295 1296 - if (change & UCSI_CONSTAT_BC_CHANGE) 1296 + if (change & (UCSI_CONSTAT_BC_CHANGE | UCSI_CONSTAT_SINK_PATH_CHANGE)) 1297 1297 ucsi_port_psy_changed(con); 1298 1298 1299 1299 if (con->ucsi->version >= UCSI_VERSION_2_1 &&
+1
drivers/usb/typec/ucsi/ucsi.h
··· 382 382 #define UCSI_CONSTAT_BC_CHANGE BIT(9) 383 383 #define UCSI_CONSTAT_PARTNER_CHANGE BIT(11) 384 384 #define UCSI_CONSTAT_POWER_DIR_CHANGE BIT(12) 385 + #define UCSI_CONSTAT_SINK_PATH_CHANGE BIT(13) 385 386 #define UCSI_CONSTAT_CONNECT_CHANGE BIT(14) 386 387 #define UCSI_CONSTAT_ERROR BIT(15) 387 388