Re: [PATCH v3] usb: core: hub: Re-guess ep0 maxpacket size after reset

From: Alan Stern

Date: Mon Nov 09 2026 - 22:06:09 EST


On Mon, Nov 09, 2026 at 09:34:37PM +0100, Michal Pecio wrote:
> On Mon, 9 Nov 2026 11:05:30 -0500, Alan Stern wrote:
> > Not here. And not inside the retry loop -- ep0_reinit should be
> > called only once since the maxpacket value is changed only once.
>
> Sashiko pointed out that xhci-hcd may not perform ep0_reinit() properly
> until address_device() or enable_device() is called.
>
> So it's either this kludge, or dependency on an xhci-hcd patch which
> didn't exist until today:
>
> https://lore.kernel.org/linux-usb/20261109112846.04bfeb0f.michal.pecio@xxxxxxxxx/

If you're asking my opinion, I say merge both patches.

Alan Stern