linux-stable/drivers/usb
Mathias Nyman 80050dfea3 xhci: add xhci_get_virt_ep() helper
[commit b1adc42d44 upstream]

In several event handlers we need to find the right endpoint
structure from slot_id and ep_index in the event.

Add a helper for this, check that slot_id and ep_index are valid.

Cc: stable@vger.kernel.org
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210129130044.206855-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Carsten Schmid <carsten_schmid@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-28 11:13:52 +02:00
..
atm
c67x00 USB: c67x00: fix use after free in c67x00_giveback_urb 2020-07-22 09:32:08 +02:00
chipidea usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data() 2021-01-12 20:10:21 +01:00
class USB: cdc-acm: blacklist Heimann USB Appset device 2021-07-20 16:15:39 +02:00
common
core usb: hub: Fix link power management max exit latency (MEL) calculations 2021-07-28 11:13:50 +02:00
dwc2 usb: dwc2: gadget: Fix sending zero length packet in DDMA mode. 2021-07-28 11:13:50 +02:00
dwc3 usb: dwc3: Fix debugfs creation flow 2021-07-20 16:15:39 +02:00
early USB: early: Handle AMD's spec-compliant identifiers, too 2020-04-29 16:31:26 +02:00
gadget usb: gadget: hid: fix error return code in hid_bind() 2021-07-20 16:16:09 +02:00
host xhci: add xhci_get_virt_ep() helper 2021-07-28 11:13:52 +02:00
image
isp1760
misc USB: trancevibrator: fix control-request direction 2021-06-03 08:38:04 +02:00
mon
mtu3 usb: mtu3: fix panic in mtu3_gadget_stop() 2020-11-10 12:36:01 +01:00
musb usb: musb: Fix suspend with devices connected for a64 2021-04-07 12:48:50 +02:00
phy
renesas_usbhs usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop() 2021-07-28 11:13:50 +02:00
roles
serial USB: serial: cp210x: add ID for CEL EM3588 USB ZigBee stick 2021-07-28 11:13:50 +02:00
storage USB: usb-storage: Add LaCie Rugged USB3-FW to IGNORE_UAS 2021-07-28 11:13:50 +02:00
typec usb: typec: Add the missed altmode_id_remove() in typec_register_altmode() 2021-07-20 16:15:39 +02:00
usbip usbip: vudc: fix missing unlock on error in usbip_sockfd_store() 2021-05-22 10:59:32 +02:00
wusbcore
Kconfig
Makefile
README
usb-skeleton.c

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.