Re: [PATCH] usb: gadget: u_serial: Dequeue the console request only when queued
From: Greg Kroah-Hartman
Date: Fri Nov 20 2026 - 08:58:07 EST
On Mon, Sep 28, 2026 at 03:18:18PM -0300, Fabricio Akio via B4 Relay wrote:
> From: Fabricio Akio <fabricioakio@xxxxxxxxx>
>
> gs_console_disconnect() dequeues the console request even when it is
> idle, which dwc3 reports as "request ... was not queued" on every
> disconnect. Dequeue it only while req->length marks it as queued.
>
> Signed-off-by: Fabricio Akio <fabricioakio@xxxxxxxxx>
> ---
> Tested on a Motorola Moto X4 (XT1900-6, SDM630) with the sdm660-mainline
> 7.2.3 tree and the gadget serial console in use: "request ... was not
> queued to ep3in" is logged on every system suspend without this patch,
> and not over three consecutive cycles with it. The path where the
> request is still queued at disconnect was not exercised. Applies
> unchanged to next-20260928.
> ---
> drivers/usb/gadget/function/u_serial.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Please address the issues found here:
https://sashiko.dev/#/patchset/20260928-u-serial-console-dequeue-v1-1-b44d68585632@xxxxxxxxx