]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: ucsi: Get connector status after enable notifications
authorHsin-Te Yuan <yuanhsinte@chromium.org>
Thu, 18 Dec 2025 07:37:57 +0000 (15:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Dec 2025 14:41:44 +0000 (15:41 +0100)
commit5106dbab44fba8ec6dede3f4e75d17f5aa777ec8
tree408377c1d3a920cd7ce6a9eaf551919334d70e42
parent0831269b5f71594882accfceb02638124f88955d
usb: typec: ucsi: Get connector status after enable notifications

Originally, the notification for connector change will be enabled after
the first read of the connector status. Therefore, if the event happens
during this window, it will be missing and make the status unsynced.

Get the connector status only after enabling the notification for
connector change to ensure the status is synced.

Fixes: c1b0bc2dabfa ("usb: typec: Add support for UCSI interface")
Cc: stable <stable@kernel.org>
Tested-by: Kenneth R. Crudup <kenny@panix.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hsin-Te Yuan <yuanhsinte@chromium.org>
Link: https://patch.msgid.link/20251218-ucsi-v7-1-aea83e83fb12@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c