linux-stable/drivers/usb
yuan linyu 2b002c308e 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-13 12:50:11 +02:00
..
atm
c67x00
chipidea usb: chipidea: wait controller resume finished for wakeup irq 2024-01-25 14:33:37 -08:00
class usb: cdc-wdm: close race between read and workqueue 2024-04-13 12:50:09 +02:00
common Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout" 2023-01-18 11:30:56 +01:00
core usb: port: Don't try to peer unused USB ports based on location 2024-04-13 12:50:08 +02:00
dwc2 usb: dwc2: gadget: LPM flow fix 2024-04-13 12:50:11 +02:00
dwc3 Revert "usb: dwc3: don't reset device side if dwc3 was configured as host-only" 2024-01-25 14:33:37 -08:00
early
gadget usb: udc: remove warning when queue disabled ep 2024-04-13 12:50:11 +02:00
host usb: fotg210-hcd: delete an incorrect bounds test 2024-01-08 11:27:37 +01:00
image
isp1760
misc USB: sisusbvga: Add endpoint checks 2023-05-30 12:42:14 +01:00
mon usb: mon: Fix atomicity violation in mon_bin_vma_fault 2024-01-25 14:33:37 -08:00
mtu3 usb: mtu3: fix USB 3.0 dual-role-switch from device to host 2022-05-12 12:20:18 +02:00
musb usb: musb: fix MUSB_QUIRK_B_DISCONNECT_99 handling 2024-01-08 11:27:36 +01:00
phy usb: phy: mxs: remove CONFIG_USB_OTG condition for mxs_phy_is_otg_host() 2024-01-25 14:33:37 -08:00
renesas_usbhs usb: renesas: Fix refcount leak bug 2022-08-25 11:15:43 +02:00
roles usb: roles: don't get/set_role() when usb_role_switch is unregistered 2024-03-01 13:06:10 +01:00
serial USB: serial: cp210x: add pid/vid for TDK NC0110013M and MM0110113M 2024-04-13 12:50:05 +02:00
storage USB: usb-storage: Prevent divide-by-0 error in isd200_ata_command 2024-04-13 12:50:08 +02:00
typec usb: typec: class: fix typec_altmode_put_partner to put plugs 2024-01-25 14:33:37 -08:00
usbip USB: usbip: fix stub_dev hub disconnect 2023-11-20 10:29:20 +01:00
wusbcore
Kconfig Partially revert "usb: Kconfig: using select for USB_COMMON dependency" 2021-10-13 10:10:50 +02:00
Makefile
README
usb-skeleton.c

README

To understand all the Linux-USB framework, you'll use these resources:

    * This source code.  This is necessarily an evolving work, and
      includes kerneldoc that should help you get a current overview.
      ("make pdfdocs", and then look at "usb.pdf" for host side and
      "gadget.pdf" for peripheral side.)  Also, Documentation/usb has
      more information.

    * The USB 2.0 specification (from www.usb.org), with supplements
      such as those for USB OTG and the various device classes.
      The USB specification has a good overview chapter, and USB
      peripherals conform to the widely known "Chapter 9".

    * Chip specifications for USB controllers.  Examples include
      host controllers (on PCs, servers, and more); peripheral
      controllers (in devices with Linux firmware, like printers or
      cell phones); and hard-wired peripherals like Ethernet adapters.

    * Specifications for other protocols implemented by USB peripheral
      functions.  Some are vendor-specific; others are vendor-neutral
      but just standardized outside of the www.usb.org team.

Here is a list of what each subdirectory here is, and what is contained in
them.

core/		- This is for the core USB host code, including the
		  usbfs files and the hub class driver ("hub_wq").

host/		- This is for USB host controller drivers.  This
		  includes UHCI, OHCI, EHCI, and others that might
		  be used with more specialized "embedded" systems.

gadget/		- This is for USB peripheral controller drivers and
		  the various gadget drivers which talk to them.


Individual USB driver directories.  A new driver should be added to the
first subdirectory in the list below that it fits into.

image/		- This is for still image drivers, like scanners or
		  digital cameras.
../input/	- This is for any driver that uses the input subsystem,
		  like keyboard, mice, touchscreens, tablets, etc.
../media/	- This is for multimedia drivers, like video cameras,
		  radios, and any other drivers that talk to the v4l
		  subsystem.
../net/		- This is for network drivers.
serial/		- This is for USB to serial drivers.
storage/	- This is for USB mass-storage drivers.
class/		- This is for all USB device drivers that do not fit
		  into any of the above categories, and work for a range
		  of USB Class specified devices. 
misc/		- This is for all USB device drivers that do not fit
		  into any of the above categories.