On Fri, Dec 05, 2025 at 03:07:46PM +0800, Hsin-Te Yuan wrote:
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@vger.kernel.org # v4.13+ Signed-off-by: Hsin-Te Yuan yuanhsinte@chromium.org
Changes in v6:
- Free the locks in error path.
- Link to v5: https://lore.kernel.org/r/20251205-ucsi-v5-1-488eb89bc9b8@chromium.org
This does not apply to 6.19-rc1 at all, please rebase and resend.
thanks,
greg k-h