[PATCH 0/2] wifi: mm81x: recover from bulk transfer errors
From: YuanZhe Liu
Date: Sat Nov 21 2026 - 11:49:59 EST
The MM81x USB driver mishandles errors of its bulk transfers in two
independent ways.
Patch 1 makes mm81x_usb_cmd() report the status of the completed command
urb. Today a command that completed with -EPIPE or -EPROTO is reported as
successful, so the data phase is submitted even though the command that
programs its address, direction and length never reached the device.
Patch 2 clears the halt of a bulk endpoint that answered with a stall. A
stalled endpoint stays halted until CLEAR_FEATURE(ENDPOINT_HALT); without
it every later transfer on that endpoint fails as well. The command
endpoint is the same endpoint as the memory write endpoint, so patch 2
builds on the error reporting added by patch 1.
YuanZhe Liu (2):
wifi: mm81x: report a failed command urb to the caller
wifi: mm81x: clear a stalled bulk endpoint before the next transfer
drivers/net/wireless/morsemicro/mm81x/usb.c | 25 ++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
--
2.34.1