linux-uconsole/drivers/usb
Thinh Nguyen e82381ad9a UPSTREAM: usb: dwc3: gadget: Use max speed if unspecified
If the gadget driver doesn't specify a max_speed, then use the
controller's maximum supported speed as default. For DWC_usb32 IP, the
gadget's speed maybe limited to gen2x1 rate only if the driver's
max_speed is unknown. This scenario should not occur with the current
implementation since the default gadget driver's max_speed should always
be specified. However, to make the driver more robust and help with
readability, let's cover all the scenarios in __dwc3_gadget_set_speed().

Fixes: 450b9e9fab ("usb: dwc3: gadget: Set speed only up to the max supported")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/55ac7001af73bfe9bc750c6446ef4ac8cf6f9313.1615254129.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 93f1d43c57)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I8cadeeb472317c2d7fe29a4f534386cb77427841
2021-03-23 16:55:01 +01:00
..
atm usb: atm: don't use snprintf() for sysfs attrs 2020-08-25 19:11:18 +02:00
c67x00 Linux 5.9-rc3 2020-08-31 07:11:45 +02:00
cdns3 usb: cdns3: imx: fix can't create core device the second time issue 2021-01-27 11:55:17 +01:00
chipidea usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data() 2021-01-12 20:18:19 +01:00
class USB: usblp: don't call usb_set_interface if there's a single alt 2021-02-10 09:29:10 +01:00
common FROMGIT: usb: common: move function's kerneldoc next to its definition 2021-03-08 16:15:00 +01:00
core FROMGIT: usb: common: add function to get interval expressed in us unit 2021-03-08 16:14:59 +01:00
dwc2 Merge 5.10.20 into android12-5.10 2021-03-07 12:33:33 +01:00
dwc3 UPSTREAM: usb: dwc3: gadget: Use max speed if unspecified 2021-03-23 16:55:01 +01:00
early usb: early: ehci-dbgp: convert to readl_poll_timeout_atomic() 2020-09-25 16:29:09 +02:00
gadget UPSTREAM: usb: gadget: configfs: Fix KASAN use-after-free 2021-03-18 06:49:05 +00:00
host ANDROID: GKI: USB: XHCI: add Android ABI padding to lots of xhci structures 2021-03-19 08:38:00 +00:00
image USB: microtek: use set_host_byte() 2020-09-16 12:42:10 +02:00
isp1760 usb: isp1760-hcd: convert to readl_poll_timeout_atomic() 2020-09-25 16:30:05 +02:00
misc USB: yurex: fix control-URB timeout handling 2021-01-12 20:18:20 +01:00
mon
mtu3 usb: mtu3: fix memory corruption in mtu3_debugfs_regset() 2020-12-26 16:02:38 +01:00
musb usb: musb: Fix runtime PM race in musb_queue_resume_work 2021-03-04 11:38:24 +01:00
phy usb: phy: phy-ab8500-usb: fix spello of "function" 2020-10-02 09:57:41 +03:00
renesas_usbhs usb: renesas_usbhs: Clear pipe running flag in usbhs_pkt_pop() 2021-02-10 09:29:10 +01:00
roles device connection: Remove struct device_connection 2020-09-07 11:14:09 +02:00
serial USB: serial: mos7720: fix error code in mos7720_write() 2021-03-04 11:38:24 +01:00
storage usb: uas: Add PNY USB Portable SSD to unusual_uas 2021-01-12 20:18:19 +01:00
typec ANDROID: usb: typec: tcpci: Migrate restricted vendor hook 2021-03-21 13:24:36 -07:00
usbip usb: usbip: vhci_hcd: protect shift size 2021-01-12 20:18:19 +01:00
Kconfig
Makefile
usb-skeleton.c