All of lore.kernel.org
 help / color / mirror / Atom feed
* Regression in f_fastboot due to commit 6a92e9827650 ("usb: ci_udc: Check ci_ep->desc before use")
@ 2026-07-08  5:12 Lothar Waßmann
  2026-07-09 15:15 ` Mattijs Korpershoek
  0 siblings, 1 reply; 3+ messages in thread
From: Lothar Waßmann @ 2026-07-08  5:12 UTC (permalink / raw)
  To: u-boot; +Cc: Petr Beneš, Mattijs Korpershoek

Hi,

commit 6a92e9827650 ("usb: ci_udc: Check ci_ep->desc before use") has
the side effect that an empty buffer is being passed on to
rx_handler_command() in drivers/usb/gadget/f_fastboot.c upon
termination of a fastboot session which leads to a
'command  not recognized' error message being printed on the console.

Obviously without the commit the offending USB request had been silently
dropped but is now delivered to the upper levels.

I'm not sure what the correct fix would be.
Should the fastboot driver ignore the empty command buffer or should
the "Moreover, the patch gets rid of possible outstanding requests
if the endpoint's state changes to disabled." part of the commit be
reverted?


Lothar Waßmann

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-10 21:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08  5:12 Regression in f_fastboot due to commit 6a92e9827650 ("usb: ci_udc: Check ci_ep->desc before use") Lothar Waßmann
2026-07-09 15:15 ` Mattijs Korpershoek
2026-07-10 21:27   ` Petr Beneš

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.