Re: [PATCH v2 2/2] usb: typec: ucsi: gaokun: Defer missing USB events per connector
From: Greg Kroah-Hartman
Date: Thu Dec 03 2026 - 22:25:39 EST
On Mon, Nov 30, 2026 at 05:42:48AM -0800, getfeus@xxxxxxxxx wrote:
> The EC IRQ thread dispatches both connector and USB events through a
> blocking notifier. Waiting in the connector callback holds up the IRQ
> thread that would deliver the USB event. The first USB event also
> completes every port's wait, and those completions are never rearmed.
>
> Schedule the existing two-second fallback on a freezable workqueue and
> return from the notifier. Track each connector independently. A USB
> update cancels only the matching fallback. A newer connector change
> moves its deadline even if the older worker is already running.
>
> Serialize mode updates and acknowledgments from the two paths. Stop
> notifications and drain per-port work before unregistering UCSI.
>
> Fixes: 00327d7f2c8c ("usb: typec: ucsi: add Huawei Matebook E Go ucsi driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Youngjoon <getfeus@xxxxxxxxx>
Does not match the "From:" line :(