Re: [PATCH] USB: serial: oti6858: restart polling after TX allocation failure

From: Johan Hovold

Date: Fri Nov 27 2026 - 08:17:06 EST


On Fri, Nov 13, 2026 at 01:27:38PM +0800, Haowen Tu wrote:
> The status interrupt callback stops polling when it schedules send_data().
> The work function then sets write_urb_in_use before allocating a one-byte
> buffer for the transmit-buffer query. If that allocation fails, it returns
> without clearing the flag or resubmitting the status interrupt URB. With
> no write URB submitted either, nothing restarts polling and queued data
> can no longer make progress.
>
> Use usb_control_msg_recv() to manage the DMA-safe query buffer. Allocation
> failures then follow the existing control-transfer error path, which
> leaves the FIFO untouched, clears write_urb_in_use and restarts polling.
> Adjust the return-value check for the helper's zero-on-success convention.
>
> Fixes: d2126326bd71 ("USB: oti6858: fix DMA buffer on stack")
> Signed-off-by: Haowen Tu <tuhaowen@xxxxxxxxxxxxx>

Applied for -next, thanks.

Johan