android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mathias Nyman b2ce37d86d usb: Flush altsetting 0 endpoints before reinitializating them after reset.
commit 89bb3dc13ac29a563f4e4c555e422882f64742bd upstream.

usb core avoids sending a Set-Interface altsetting 0 request after device
reset, and instead relies on calling usb_disable_interface() and
usb_enable_interface() to flush and reset host-side of those endpoints.

xHCI hosts allocate and set up endpoint ring buffers and host_ep->hcpriv
during usb_hcd_alloc_bandwidth() callback, which in this case is called
before flushing the endpoint in usb_disable_interface().

Call usb_disable_interface() before usb_hcd_alloc_bandwidth() to ensure
URBs are flushed before new ring buffers for the endpoints are allocated.

Otherwise host driver will attempt to find and remove old stale URBs
from a freshly allocated new ringbuffer.

Cc: stable <stable@kernel.org>
Fixes: 4fe0387afa ("USB: don't send Set-Interface after reset")
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250514132520.225345-1-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-27 11:02:50 +01:00
..
atm usb: atm: cxacru: fix a flaw in existing endpoint checks 2025-03-13 12:43:31 +01:00
c67x00
cdns3 usb: cdns3: Fix deadlock when using NCM gadget 2025-05-02 07:39:27 +02:00
chipidea usb: chipidea: ci_hdrc_imx: implement usb_phy_init() error handling 2025-06-04 14:32:26 +02:00
class usb: usbtmc: Fix timeout value in get_stb 2025-06-27 11:02:44 +01:00
common
core usb: Flush altsetting 0 endpoints before reinitializating them after reset. 2025-06-27 11:02:50 +01:00
dwc2 usb: dwc2: gadget: remove of_node reference upon udc_stop 2025-03-13 12:43:14 +01:00
dwc3 usb: dwc3: gadget: check that event count does not exceed event buffer length 2025-05-02 07:39:27 +02:00
early
gadget usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev() 2025-05-02 07:39:28 +02:00
host usb: uhci-platform: Make the clock really optional 2025-06-04 14:32:27 +02:00
image
isp1760
misc
mon
mtu3
musb
phy
renesas_usbhs usb: renesas_usbhs: Reorder clock handling and power management in probe 2025-06-27 11:02:48 +01:00
roles
serial USB: serial: simple: add OWON HDS200 series oscilloscope support 2025-05-02 07:39:27 +02:00
storage usb: storage: Ignore UAS driver for SanDisk 3.2 Gen2 storage device 2025-06-27 11:02:44 +01:00
typec usb: typec: ucsi: displayport: Fix NULL pointer access 2025-06-04 14:32:27 +02:00
usbip
Kconfig
Makefile
usb-skeleton.c