From patchwork Sun Mar 26 13:36:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 75062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp947468vqo; Sun, 26 Mar 2023 06:49:15 -0700 (PDT) X-Google-Smtp-Source: AKy350YNQgR8Rtnxgn48/9geqs/haLgymiAHoQTS7od2VJJM3iuuET8FTEiISevYALy/NxFX2Kq1 X-Received: by 2002:a17:903:32ca:b0:1a1:ab40:b0f5 with SMTP id i10-20020a17090332ca00b001a1ab40b0f5mr10664225plr.36.1679838555491; Sun, 26 Mar 2023 06:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679838555; cv=none; d=google.com; s=arc-20160816; b=ZG/SfZ1PyIJpCocI/Qv0WT5Py3AZ5B3JhyGyF+7uImLzF3WvTcGEsmJnbwlRXSFobc 6m67EiCEFs0iOoDQcKndaQk0zsX/wLhhqx3PROTuopIB22TNyRFSWhtUsJAMPP4b91cK 1bC5L++l41LSs3jXIJr2O+c3KFFrNAOYhY2FekLHyS6BGhIqddh/5lcZVfj10gotYZUt q7pj6qpL1A+4tch5RD0aUXUPWNos616cSeJUa1BmLT2TxZFum147Th4uZnY2/7RWtz8j 9phNE2TOqpy3ZNu6OT3Wwy/vNFwLYyQ5Pj1TgzAm5DwaXNOPLiwtcXUDzDklxWTYu6uE 3bnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=jzT0/hts1KbBTq6+0/l10nSK49sjs+54vO7dr45QV8E=; b=r0qs2OEbF6MY082L4jGdJMq54uyR0mWuu8NuUDzc97lW8L7aZOWIAj2Kktivgsyr5Q Y90cnhVEieI/KU/2YD1av7Fc+oNArPoX7NZPxgCL/tMduHJ22yrRxy7+2Qs1973dm5Nd hXGWk9AnWBSUmeQSDRgah30YsYSn6QmaMUQFIE3t3KJm0POqfYUgpNGWsZOtKlGstDyo Mm06uanUOtykE5V8s95oSNJeiNeL8wetH5Z57zb07A7umEoev198dghI1I0+4iBJ8q2P kdu7nL44kMNFiEbLT+9mTn/kfkULmyZWphUYBVIGNTMyUy/Ci8HTDFEB+epYlatTQyxa f44Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Whut8GCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a632a01000000b0050fa7d26537si14684117pgq.601.2023.03.26.06.49.02; Sun, 26 Mar 2023 06:49:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Whut8GCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231717AbjCZNgv (ORCPT + 99 others); Sun, 26 Mar 2023 09:36:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbjCZNgt (ORCPT ); Sun, 26 Mar 2023 09:36:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8888F49EB; Sun, 26 Mar 2023 06:36:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 232E260EB9; Sun, 26 Mar 2023 13:36:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17C2DC433D2; Sun, 26 Mar 2023 13:36:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1679837807; bh=msP+ccOnKADnG7OkJ+CMPE7w22qn6GUO8hlPzPlKGzI=; h=Date:From:To:Cc:Subject:From; b=Whut8GCz2OMDuEwMz0x7UqaTZgKEfZxKOVD26rt8ox2B1SrVTvpNreTLzbmiaygDu 8qau4GoUc4/+Scs6hVGf8h8R2iaRPmQmLinoHuqmm2FXwsPxG3k4mhHfc825BVqt32 ueUn1rRNc9WqFKA0tX3P0fJwHleZyINItjM0WiTg= Date: Sun, 26 Mar 2023 15:36:44 +0200 From: Greg KH To: Linus Torvalds Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [GIT PULL] USB / Thunderbolt driver fixes for 6.3-rc4 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761438393065844975?= X-GMAIL-MSGID: =?utf-8?q?1761438393065844975?= The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6: Linux 6.3-rc1 (2023-03-05 14:52:03 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-6.3-rc4 for you to fetch changes up to 5021383242ada277a38bd052a4c12ed4707faccb: usb: dwc2: fix a race, don't power off/on phy for dual-role mode (2023-03-23 19:13:16 +0100) ---------------------------------------------------------------- USB/Thunderbolt driver fixes for 6.3-rc4 Here are a small set of USB and Thunderbolt driver fixes for reported problems and a documentation update, for 6.3-rc4. Included in here are: - documentation update for uvc gadget driver - small thunderbolt driver fixes - cdns3 driver fixes - dwc3 driver fixes - dwc2 driver fixes - chipidea driver fixes - typec driver fixes - onboard_usb_hub device id updates - quirk updates All of these have been in linux-next with no reported problems. Signed-off-by: Greg Kroah-Hartman ---------------------------------------------------------------- Alexander Stein (1): usb: misc: onboard-hub: add support for Microchip USB2517 USB 2.0 hub Alvin Šipraga (1): usb: gadget: u_audio: don't let userspace block driver unbind Andy Shevchenko (1): usb: gadget: Use correct endianness of the wLength field for WebUSB Daniel Scally (1): docs: usb: Add documentation for the UVC Gadget Fabrice Gasnier (2): usb: dwc2: fix a devres leak in hw_enable upon suspend resume usb: dwc2: fix a race, don't power off/on phy for dual-role mode Gil Fine (2): thunderbolt: Add missing UNSET_INBOUND_SBTX for retimer access thunderbolt: Limit USB3 bandwidth of certain Intel USB4 host routers Greg Kroah-Hartman (1): Merge tag 'thunderbolt-for-v6.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt into usb-linus Hans de Goede (3): usb: ucsi: Fix NULL pointer deref in ucsi_connector_change() usb: ucsi: Fix ucsi->connector race usb: ucsi_acpi: Increase the command completion timeout Hongren Zheng (1): MAINTAINERS: make me a reviewer of USB/IP Mario Limonciello (2): thunderbolt: Use const qualifier for `ring_interrupt_index` thunderbolt: Disable interrupt auto clear for rings Mika Westerberg (3): thunderbolt: Fix memory leak in margining thunderbolt: Call tb_check_quirks() after initializing adapters thunderbolt: Use scale field when allocating USB3 bandwidth Pawel Laszczak (3): usb: cdnsp: Fixes issue with redundant Status Stage usb: cdns3: Fix issue with using incorrect PCI device function usb: cdnsp: changes PCI Device ID to fix conflict with CNDS3 driver Sanjay R Mehta (1): thunderbolt: Add quirk to disable CLx Tom Rix (1): thunderbolt: Rename shadowed variables bit to interrupt_bit and auto_clear_bit Vincenzo Palazzo (1): usb: dwc3: Fix a typo in field name Wesley Cheng (1): usb: dwc3: gadget: Add 1ms delay after end transfer command without IOC Xu Yang (4): usb: typec: tcpm: fix create duplicate source-capabilities file usb: typec: tcpm: fix warning when handle discover_identity message usb: chipdea: core: fix return -EINVAL if request role is the same with current role usb: chipidea: core: fix possible concurrent when switch role Yaroslav Furman (1): uas: Add US_FL_NO_REPORT_OPCODES for JMicron JMS583Gen 2 Ziyang Huang (1): usb: dwc2: drd: fix inconsistent mode if role-switch-default-mode="host" Documentation/usb/gadget_uvc.rst | 352 ++++++++++++++++++++++++++++++++++ Documentation/usb/index.rst | 1 + MAINTAINERS | 1 + drivers/thunderbolt/debugfs.c | 12 +- drivers/thunderbolt/nhi.c | 49 +++-- drivers/thunderbolt/nhi_regs.h | 6 +- drivers/thunderbolt/quirks.c | 44 +++++ drivers/thunderbolt/retimer.c | 23 ++- drivers/thunderbolt/sb_regs.h | 1 + drivers/thunderbolt/switch.c | 4 +- drivers/thunderbolt/tb.h | 15 +- drivers/thunderbolt/usb4.c | 53 ++++- drivers/usb/cdns3/cdns3-pci-wrap.c | 5 + drivers/usb/cdns3/cdnsp-ep0.c | 19 +- drivers/usb/cdns3/cdnsp-pci.c | 27 ++- drivers/usb/chipidea/ci.h | 2 + drivers/usb/chipidea/core.c | 11 +- drivers/usb/chipidea/otg.c | 5 +- drivers/usb/dwc2/drd.c | 3 +- drivers/usb/dwc2/gadget.c | 6 +- drivers/usb/dwc2/platform.c | 19 +- drivers/usb/dwc3/core.h | 2 +- drivers/usb/dwc3/gadget.c | 14 +- drivers/usb/gadget/composite.c | 7 +- drivers/usb/gadget/function/u_audio.c | 2 +- drivers/usb/misc/onboard_usb_hub.c | 1 + drivers/usb/misc/onboard_usb_hub.h | 1 + drivers/usb/storage/unusual_uas.h | 7 + drivers/usb/typec/tcpm/tcpm.c | 28 ++- drivers/usb/typec/ucsi/ucsi.c | 33 ++-- drivers/usb/typec/ucsi/ucsi_acpi.c | 2 +- 31 files changed, 625 insertions(+), 130 deletions(-) create mode 100644 Documentation/usb/gadget_uvc.rst