The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.9-rc3 for you to fetch changes up to 20934c0de13b49a072fb1e0ca79fe0fe0e40eae5: usb: storage: Add unusual_uas entry for Sony PSZ drives (2020-08-28 09:23:16 +0200) ---------------------------------------------------------------- USB fixes for 5.9-rc3 - take 2 Let's try this again... Here are some USB fixes for 5.9-rc3. This differs from the previous pull request for this release in that: - the usb gadget patch now does not break some systems, and actually does what it was intended to do. Many thanks to Marek Szyprowski for quickly noticing and testing the patch from Andy Shevchenko to resolve this issue. - some more new USB quirks have been added to get some new devices to work properly based on user reports. Other than that, the original pull request patches are all here, and they contain: - usb gadget driver fixes - xhci driver fixes - typec fixes - new quirks and ids - fixes for USB patches that went into 5.9-rc1. All of these have been tested in linux-next with no reported issues. Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> ---------------------------------------------------------------- Alan Stern (3): USB: yurex: Fix bad gfp argument USB: quirks: Ignore duplicate endpoint on Sound Devices MixPre-D usb: storage: Add unusual_uas entry for Sony PSZ drives Andy Shevchenko (2): usb: hcd: Fix use after free in usb_hcd_pci_remove() USB: gadget: u_f: Unbreak offset calculation in VLAs Badhri Jagan Sridharan (1): usb: typec: tcpm: Fix Fix source hard reset response for TDA 2.3.1.1 and TDA 2.3.1.2 failures Bastien Nocera (2): USB: Also match device drivers using the ->match vfunc USB: Fix device driver race Brooke Basile (2): USB: gadget: u_f: add overflow checks to VLA macros USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb() Christophe JAILLET (1): usb: gadget: f_tcm: Fix some resource leaks in some error paths Cyril Roelandt (1): USB: Ignore UAS for JMicron JMS567 ATA/ATAPI Bridge Ding Hui (1): xhci: Always restore EP_SOFT_CLEAR_TOGGLE even if ep reset failed Evgeny Novikov (1): USB: lvtest: return proper error code in probe Greg Kroah-Hartman (1): Merge tag 'fixes-for-v5.9-rc2' of git://git.kernel.org/.../balbi/usb into usb-linus Hans de Goede (4): usb: typec: ucsi: Fix AB BA lock inversion usb: typec: ucsi: Fix 2 unlocked ucsi_run_command calls usb: typec: ucsi: Rework ppm_lock handling usb: typec: ucsi: Hold con->lock for the entire duration of ucsi_register_port() Heikki Krogerus (1): tools: usb: move to tools buildsystem JC Kuo (2): usb: host: xhci-tegra: otg usb2/usb3 port init usb: host: xhci-tegra: fix tegra_xusb_get_phy() Kai-Heng Feng (2): USB: quirks: Add no-lpm quirk for another Raydium touchscreen xhci: Do warm-reset when both CAS and XDEV_RESUME are set Li Jun (1): usb: host: xhci: fix ep context print mismatch in debugfs M. Vefa Bicakci (1): usbip: Implement a match function to fix usbip Tang Bin (1): usb: host: ohci-exynos: Fix error handling in exynos_ohci_probe() Thinh Nguyen (4): usb: dwc3: gadget: Don't setup more than requested usb: dwc3: gadget: Fix handling ZLP usb: dwc3: gadget: Handle ZLP for sg requests usb: uas: Add quirk for PNY Pro Elite Tom Rix (1): USB: cdc-acm: rework notification_buffer resizing Vinod Koul (1): usb: renesas-xhci: remove version check 周琰杰 (Zhou Yanjie) (1): USB: PHY: JZ4770: Fix static checker warning. drivers/usb/class/cdc-acm.c | 22 ++++--- drivers/usb/core/driver.c | 40 ++++++++++++- drivers/usb/core/generic.c | 5 +- drivers/usb/core/hcd-pci.c | 5 +- drivers/usb/core/quirks.c | 7 +++ drivers/usb/dwc3/gadget.c | 107 +++++++++++++++++++++++++++++------ drivers/usb/gadget/function/f_ncm.c | 81 ++++++++++++++++++++++---- drivers/usb/gadget/function/f_tcm.c | 7 ++- drivers/usb/gadget/u_f.h | 38 +++++++++---- drivers/usb/host/ohci-exynos.c | 5 +- drivers/usb/host/xhci-debugfs.c | 8 +-- drivers/usb/host/xhci-hub.c | 19 ++++--- drivers/usb/host/xhci-pci-renesas.c | 19 +------ drivers/usb/host/xhci-tegra.c | 4 +- drivers/usb/host/xhci.c | 3 +- drivers/usb/misc/lvstest.c | 2 +- drivers/usb/misc/yurex.c | 2 +- drivers/usb/phy/phy-jz4770.c | 1 + drivers/usb/storage/unusual_devs.h | 2 +- drivers/usb/storage/unusual_uas.h | 14 +++++ drivers/usb/typec/tcpm/tcpm.c | 28 ++++++++- drivers/usb/typec/ucsi/displayport.c | 9 +-- drivers/usb/typec/ucsi/ucsi.c | 103 +++++++++++++++++---------------- drivers/usb/usbip/stub_dev.c | 6 ++ tools/usb/Build | 2 + tools/usb/Makefile | 53 ++++++++++++++--- 26 files changed, 423 insertions(+), 169 deletions(-) create mode 100644 tools/usb/Build