+74
−59
Loading
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: c1b0bc2d ("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>