Re: [PATCH 2/2] wifi: mm81x: clear a stalled bulk endpoint before the next transfer

From: Lachlan Hodges

Date: Mon Nov 23 2026 - 19:34:49 EST


On Sun, Nov 22, 2026 at 12:49:23AM +0800, YuanZhe Liu wrote:
> A bulk endpoint stays halted after it has answered a transfer with a
> stall, and only a CLEAR_FEATURE(ENDPOINT_HALT) request resumes it. The
> driver never sends one: the completion callbacks only record -EPIPE in
> musb->errors, so every later register or memory access on that endpoint
> stalls immediately and the device remains unusable until it is
> re-enumerated.
>
> Clear the halt of the endpoint that reported -EPIPE before returning the
> error, so that a following restart can reach the device again. The command
> endpoint is the memory write endpoint, hence the same recovery is applied
> when the command urb itself stalls.
>
> usb_clear_halt() sends a control request and may sleep, so it is called
> from the process-context paths that wait for the transfer and never from a
> completion callback.

I applied patch #1, but this one seems .. interesting. Have you run
into this problem? Do you have a reproducer?

lachlan