FAILED: patch "[PATCH] usb: typec: ucsi: Don't update power_supply on power role" failed to apply to 6.6-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.6-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
git checkout FETCH_HEAD
git cherry-pick -x d98d413ca65d0790a8f3695d0a5845538958ab84
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026060557-ethically-perkiness-c7ca@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From d98d413ca65d0790a8f3695d0a5845538958ab84 Mon Sep 17 00:00:00 2001
From: Myrrh Periwinkle <[email protected]>
Date: Tue, 19 May 2026 18:41:40 +0700
Subject: [PATCH] usb: typec: ucsi: Don't update power_supply on power role
change if not connected
We only need to update the power_supply on power role change if the port is connected, because otherwise the online status should be the same for both cases.
drivers/usb/typec/ucsi/ucsi.c +6 -1
@@ -1308,7 +1308,12 @@ static void ucsi_handle_connector_change(struct work_struct *work)if ((change &UCSI_CONSTAT_POWER_DIR_CHANGE ) && role != prev_role) {typec_set_pwr_role (con->port, role); -ucsi_port_psy_changed (con); + +/* Some power_supply properties vary depending on the power direction when +* connected +*/ +if (UCSI_CONSTAT (con,CONNECTED )) +ucsi_port_psy_changed (con);/* Complete pending power role swap */ if (!completion_done (&con->complete))
Sasha Levin
maintainerPATCH 1/1 usb: typec: ucsi: Don't update power_supply on power role change if not connected
From: Myrrh Periwinkle <[email protected]>
[ Upstream commit d98d413ca65d0790a8f3695d0a5845538958ab84 ]
We only need to update the power_supply on power role change if the port is connected, because otherwise the online status should be the same for both cases.
--- drivers/usb/typec/ucsi/ucsi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/usb/typec/ucsi/ucsi.c +6 -1
@@ -910,7 +910,12 @@ static void ucsi_handle_connector_change(struct work_struct *work)if (con->status.change &UCSI_CONSTAT_POWER_DIR_CHANGE ) {typec_set_pwr_role (con->port, role); -ucsi_port_psy_changed (con); + +/* Some power_supply properties vary depending on the power direction when +* connected +*/ +if (con->status.flags &UCSI_CONSTAT_CONNECTED ) +ucsi_port_psy_changed (con);/* Complete pending power role swap */ if (!completion_done (&con->complete))
Signature · 1 line
2.53.0