* [PATCH] usb: dwc3: gadget: lower informal user notifaction dequeue operation
@ 2023-03-23 17:30 Marco Felsch
2023-03-24 8:30 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Marco Felsch @ 2023-03-23 17:30 UTC (permalink / raw)
To: barebox
I encounted the below error message on the i.MX8MP if a fastboot gadget
was up and running and barebox does a reset() or boots the kernel:
ERROR: dwc3 38100000.usb@38100000.of: request 00000000bfd91568 was not queued to ep1out
Printing an error message during usb_ep_dequeue() is more confusing than
helpful since the usb_ep_dequeue() could be called during unbind() like
it is done for fastboot. Lower the dev_err() message to dev_dbg() to
keep the message for developers.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
drivers/usb/dwc3/gadget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 48be74f7e9..ffe4f30c67 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1955,7 +1955,7 @@ static int dwc3_gadget_ep_dequeue(struct usb_ep *ep,
}
}
- dev_err(dwc->dev, "request %pK was not queued to %s\n",
+ dev_dbg(dwc->dev, "request %pK was not queued to %s\n",
request, ep->name);
ret = -EINVAL;
out:
--
2.30.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: dwc3: gadget: lower informal user notifaction dequeue operation
2023-03-23 17:30 [PATCH] usb: dwc3: gadget: lower informal user notifaction dequeue operation Marco Felsch
@ 2023-03-24 8:30 ` Sascha Hauer
2023-03-24 8:39 ` Marco Felsch
0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2023-03-24 8:30 UTC (permalink / raw)
To: Marco Felsch; +Cc: barebox
On Thu, Mar 23, 2023 at 06:30:16PM +0100, Marco Felsch wrote:
> I encounted the below error message on the i.MX8MP if a fastboot gadget
> was up and running and barebox does a reset() or boots the kernel:
>
> ERROR: dwc3 38100000.usb@38100000.of: request 00000000bfd91568 was not queued to ep1out
>
> Printing an error message during usb_ep_dequeue() is more confusing than
> helpful since the usb_ep_dequeue() could be called during unbind() like
> it is done for fastboot. Lower the dev_err() message to dev_dbg() to
> keep the message for developers.
I saw this message as well, but I deliberately kept it in. Motivated by
this patch I had a look after it. The correct solution is to not dequeue
requests in fastboot_unbind(). fastboot_disable() will already be called
which calls usb_ep_disable() which will dequeue all outstanding
requests.
See the patch I just sent.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: dwc3: gadget: lower informal user notifaction dequeue operation
2023-03-24 8:30 ` Sascha Hauer
@ 2023-03-24 8:39 ` Marco Felsch
0 siblings, 0 replies; 3+ messages in thread
From: Marco Felsch @ 2023-03-24 8:39 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
On 23-03-24, Sascha Hauer wrote:
> On Thu, Mar 23, 2023 at 06:30:16PM +0100, Marco Felsch wrote:
> > I encounted the below error message on the i.MX8MP if a fastboot gadget
> > was up and running and barebox does a reset() or boots the kernel:
> >
> > ERROR: dwc3 38100000.usb@38100000.of: request 00000000bfd91568 was not queued to ep1out
> >
> > Printing an error message during usb_ep_dequeue() is more confusing than
> > helpful since the usb_ep_dequeue() could be called during unbind() like
> > it is done for fastboot. Lower the dev_err() message to dev_dbg() to
> > keep the message for developers.
>
> I saw this message as well, but I deliberately kept it in. Motivated by
> this patch I had a look after it. The correct solution is to not dequeue
> requests in fastboot_unbind(). fastboot_disable() will already be called
> which calls usb_ep_disable() which will dequeue all outstanding
> requests.
Linux mainline did mention usb_ep_disbale() as well, I wasn't aware of
this function. This seems to be the correct fix, ableit linux maintainer
also says that this error is not critical and we shouldn't use dev_err()
for non critical messages.
> See the patch I just sent.
Thanks :)
Regards,
Marco
>
> Sascha
>
> --
> Pengutronix e.K. | |
> Steuerwalder Str. 21 | http://www.pengutronix.de/ |
> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-24 8:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 17:30 [PATCH] usb: dwc3: gadget: lower informal user notifaction dequeue operation Marco Felsch
2023-03-24 8:30 ` Sascha Hauer
2023-03-24 8:39 ` Marco Felsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox