linux-stable/drivers/usb/gadget
yuan linyu df5cbb908f usb: udc: remove warning when queue disabled ep
commit 2a587a0352 upstream.

It is possible trigger below warning message from mass storage function,

WARNING: CPU: 6 PID: 3839 at drivers/usb/gadget/udc/core.c:294 usb_ep_queue+0x7c/0x104
pc : usb_ep_queue+0x7c/0x104
lr : fsg_main_thread+0x494/0x1b3c

Root cause is mass storage function try to queue request from main thread,
but other thread may already disable ep when function disable.

As there is no function failure in the driver, in order to avoid effort
to fix warning, change WARN_ON_ONCE() in usb_ep_queue() to pr_debug().

Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable@vger.kernel.org
Signed-off-by: yuan linyu <yuanlinyu@hihonor.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20240315020144.2715575-1-yuanlinyu@hihonor.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:19:33 +02:00
..
function usb: gadget: ncm: Fix handling of zero block length packets 2024-04-10 16:18:45 +02:00
legacy usb: raw-gadget: properly handle interrupted requests 2023-11-08 17:26:50 +01:00
udc usb: udc: remove warning when queue disabled ep 2024-04-10 16:19:33 +02:00
Kconfig
Makefile
composite.c usb: gadget: call usb_gadget_check_config() to verify UDC capability 2023-08-03 10:22:40 +02:00
config.c
configfs.c usb: gadget: Properly configure the device for remote wakeup 2023-05-30 13:55:29 +01:00
configfs.h
epautoconf.c
functions.c
u_f.c
u_f.h
u_os_desc.h
usbstring.c