Re: [PATCH v6] usb: typec: ucsi: Get connector status after enable notifications
From: Greg Kroah-Hartman
Date: Wed Dec 17 2025 - 08:53:17 EST
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@xxxxxxxxxxxxxxx # v4.13+
> Signed-off-by: Hsin-Te Yuan <yuanhsinte@xxxxxxxxxxxx>
> ---
> Changes in v6:
> - Free the locks in error path.
> - Link to v5: https://lore.kernel.org/r/20251205-ucsi-v5-1-488eb89bc9b8@xxxxxxxxxxxx
This does not apply to 6.19-rc1 at all, please rebase and resend.
thanks,
greg k-h