Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C51C3FFFB3 for ; Fri, 5 Jun 2026 15:04:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780671856; cv=none; b=OcoOkIolV52UpgSb+uSOp/8SdhIizgbSGftsa/rAd3tKrOwd49g1k9PiymJPueaJux+Joye4QcmFcA2xWjrK5tx2v8ij2G08sHAiLnpCYnlZ7y8f9riXbxU4VAAiniez+TUDSnUM5MOmof4DzOT66pjU8kR1e2TFgbmdyHQv9Ps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780671856; c=relaxed/simple; bh=thjbW6MWQGA/Q9zmz25QKsk9yW9ztxXuNCy3yQkda4k=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=i35qFG44pFD8nXCjgSftl8hWTR93bnfmZen9inNNw0feEqNRA0dFA43YggcvK0iMXT+SYHQ23md98fc8ypOY2CzHvzctku7Zm4tyhgVVowBjEtezrldm++3QT9pn3he9isiGwCY6U9vS7iiOV5onEXCbkWVF0PX71hvoWccmjXI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rzZZNpCc; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rzZZNpCc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC9421F00898; Fri, 5 Jun 2026 15:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780671855; bh=uj9MQkwzXva8ROXKtROLl92BcgzF1XdWRNHgg3yjJ9A=; h=Subject:To:Cc:From:Date; b=rzZZNpCcRKkBEx0hcL33MU2WHK++cNWtxp6akg2O8eSpKK9kjo5m1l7UHBa/AEW0t xVgNXpE++ZK77niwXx6+4RfzQSB8GeuQC7feCzAWd2Kcdf+QJEvQExh+2lkVKDQL0j UUJkXttRjyBDlYLmu1z8XHyQm8cpy+FSiVQCRU/A= Subject: FAILED: patch "[PATCH] usb: typec: ucsi: Don't update power_supply on power role" failed to apply to 6.12-stable tree To: myrrhperiwinkle@qtmlabs.xyz,gregkh@linuxfoundation.org,senozhatsky@chromium.org,stable@kernel.org Cc: From: Date: Fri, 05 Jun 2026 08:17:51 +0200 Message-ID: <2026060551-crazily-gatherer-b40f@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-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 . 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.12.y git checkout FETCH_HEAD git cherry-pick -x d98d413ca65d0790a8f3695d0a5845538958ab84 # git commit -s git send-email --to '' --in-reply-to '2026060551-crazily-gatherer-b40f@gregkh' --subject-prefix 'PATCH 6.12.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 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. Cc: stable Fixes: 7616f006db07 ("usb: typec: ucsi: Update power_supply on power role change") Signed-off-by: Myrrh Periwinkle Reported-and-tested-by: Sergey Senozhatsky Link: https://patch.msgid.link/20260519-ucsi-fix-2-v1-2-6f1239535187@qtmlabs.xyz Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c index 53c101bd48e2..61cb24ed820f 100644 --- a/drivers/usb/typec/ucsi/ucsi.c +++ b/drivers/usb/typec/ucsi/ucsi.c @@ -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))