From patchwork Wed Dec 12 11:22:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 10726141 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 992DB91E for ; Wed, 12 Dec 2018 11:23:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 852B62AF48 for ; Wed, 12 Dec 2018 11:23:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75DE02B09F; Wed, 12 Dec 2018 11:23:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5CE72AF48 for ; Wed, 12 Dec 2018 11:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726970AbeLLLXH (ORCPT ); Wed, 12 Dec 2018 06:23:07 -0500 Received: from mga11.intel.com ([192.55.52.93]:53513 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbeLLLXH (ORCPT ); Wed, 12 Dec 2018 06:23:07 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Dec 2018 03:23:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,344,1539673200"; d="asc'?scan'208";a="98153075" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.72.175]) by orsmga007.jf.intel.com with ESMTP; 12 Dec 2018 03:23:03 -0800 From: Felipe Balbi To: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Subject: [GIT PULL] USB changes for v4.21 Date: Wed, 12 Dec 2018 13:22:58 +0200 Message-ID: <87va3zkmzx.fsf@linux.intel.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Greg, here's my pull request for the next merge window. Patches have been around soaking for quite a while and I've tested them on platforms I have available. Let me know if you want anything to be changed. Happy holidays The following changes since commit 2e6e902d185027f8e3cb8b7305238f7e35d6a436: Linux 4.20-rc4 (2018-11-25 14:19:31 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git usb-for-v4.21 for you to fetch changes up to 4fe4f9fecc36956fd53c8edf96dd0c691ef98ff9: usb: dwc2: Fix disable all EP's on disconnect (2018-12-11 15:42:39 +0200) ---------------------------------------------------------------- USB changes for v4.21 So it looks like folks are interested in dwc3 again. Almost 64% of the changes are in dwc3 this time around with some other bits in gadget functions and dwc2. There are two important parts here: a. removal of the waitqueue from dwc3's dequeue implementation, which will guarantee that gadget functions can dequeue from any context and; b. better method for starting isochronous transfers to avoid, as much as possible, missed isoc frames. Apart from these, we have the usual set of non-critical fixes and new features all over the place. ---------------------------------------------------------------- Andrzej Pietrasiewicz (1): usb: gadget: f_fs: Allow scatter-gather buffers Andy Shevchenko (3): usb: dwc3: drd: Switch to device property for 'extcon' handling usb: dwc3: drd: Add support for DR detection through extcon usb: dwc3: trace: add missing break statement to make compiler happy Anurag Kumar Vulisha (3): usb: dwc3: update stream id in depcmd usb: dwc3: don't issue no-op trb for stream capable endpoints usb: dwc3: Correct the logic for checking TRB full in __dwc3_prepare_one_trb() Artur Petrosyan (2): usb: dwc2: gadget: Fix WkupAlert interrupt handler. usb: dwc2: gadget: Accept LPM token when TxFIFO is not empty Brian Norris (1): usb: dwc3: don't log probe deferrals; but do log other error codes Chunfeng Yun (5): usb: mtu3: remove QMU checksum usb: mtu3: enable hardware remote wakeup from L1 automatically usb: mtu3: fix the issue about SetFeature(U1/U2_Enable) usb: mtu3: enable SETUPENDISR interrupt usb: mtu3: clear SOFTCONN when clear USB3_EN if work as HS mode Colin Ian King (1): usb: gadget: udc: fix spelling mistake "intrerrupt" -> "interrupt" Felipe Balbi (11): usb: dwc3: gadget: combine unaligned and zero flags usb: dwc3: gadget: track number of TRBs per request usb: dwc3: gadget: use num_trbs when skipping TRBs on ->dequeue() usb: dwc3: gadget: extract dwc3_gadget_ep_skip_trbs() usb: dwc3: gadget: introduce cancelled_list usb: dwc3: gadget: move requests to cancelled_list usb: dwc3: gadget: remove wait_end_transfer usb: dwc3: gadget: return errors from __dwc3_gadget_start_isoc() usb: dwc3: trace: log ep commands in hex usb: dwc3: gadget: remove unnecessary dev_info() usb: dwc3: gadget: check if dep->frame_number is still valid Hsin-Yi, Wang (1): usb/mtu3: power down device ip at setup Jarkko Nikula (1): usb: renesas_usbhs: Remove dummy runtime PM callbacks Julia Lawall (2): usb: gadget: aspeed-vhub: constify usb_gadget_ops structure usb: gadget: uvc: constify vb2_ops structure Marek Szyprowski (1): usb: dwc2: Disable power down feature on Samsung SoCs Martin Blumenstingl (1): usb: dwc2: disable power_down on Amlogic devices Minas Harutyunyan (1): usb: dwc2: Fix disable all EP's on disconnect Stephan Gerhold (1): Revert "usb: dwc3: pci: Use devm functions to get the phy GPIOs" Tejas Joglekar (1): usb: dwc3: gadget: Disable CSP for stream OUT ep Terin Stock (1): usb: dwc2: host: use hrtimer for NAK retries Thinh Nguyen (14): usb: dwc3: debugfs: Properly name Tx/RxFIFO usb: dwc3: debugfs: Print eps Tx/RxFIFO in bytes usb: dwc3: debugfs: Dump internal LSP and ep registers usb: dwc3: debugfs: Properly print/set link state for HS usb: dwc3: debugfs: Print/set link state for peripheral mode usb: dwc3: Set GUSB2PHYCFG.ENBLSLPM usb: dwc3: Add a property to disable USB2 LPM usb: dwc3: Support option to disable USB2 LPM usb: dwc3: Set default mode for DWC_usb3 v3.30a and higher usb: dwc3: Track DWC_usb31 VERSIONTYPE usb: dwc3: Add disabling of start_transfer failure quirk usb: dwc3: Add workaround for isoc start transfer failure usb: gadget: Introduce frame_number to usb_request usb: dwc3: gadget: Report isoc transfer frame number Vincent Pelletier (1): usb: gadget: f_fs: Add support for CCID descriptors. Yangtao Li (1): USB: gadget: udc: s3c2410_udc: convert to DEFINE_SHOW_ATTRIBUTE Yoshihiro Shimoda (2): usb: gadget: udc: renesas_usb3: add a safety connection way for forced_b_device usb: renesas_usbhs: Use SIMPLE_DEV_PM_OPS macro YueHaibing (1): usb: mtu3: fix dbginfo in qmu_tx_zlp_error_handler Documentation/devicetree/bindings/usb/dwc3.txt | 4 + drivers/usb/dwc2/gadget.c | 44 ++-- drivers/usb/dwc2/hcd.h | 2 +- drivers/usb/dwc2/hcd_queue.c | 19 +- drivers/usb/dwc2/hw.h | 2 + drivers/usb/dwc2/params.c | 11 +- drivers/usb/dwc3/core.c | 19 +- drivers/usb/dwc3/core.h | 60 ++++- drivers/usb/dwc3/debug.h | 29 +++ drivers/usb/dwc3/debugfs.c | 201 ++++++++++++++- drivers/usb/dwc3/drd.c | 15 +- drivers/usb/dwc3/dwc3-pci.c | 8 +- drivers/usb/dwc3/gadget.c | 342 ++++++++++++++++--------- drivers/usb/dwc3/gadget.h | 15 ++ drivers/usb/dwc3/host.c | 5 +- drivers/usb/dwc3/trace.h | 4 +- drivers/usb/gadget/function/f_fs.c | 122 ++++++++- drivers/usb/gadget/function/uvc_queue.c | 2 +- drivers/usb/gadget/udc/aspeed-vhub/dev.c | 2 +- drivers/usb/gadget/udc/pch_udc.c | 2 +- drivers/usb/gadget/udc/renesas_usb3.c | 15 +- drivers/usb/gadget/udc/s3c2410_udc.c | 17 +- drivers/usb/mtu3/mtu3_core.c | 20 +- drivers/usb/mtu3/mtu3_gadget_ep0.c | 14 +- drivers/usb/mtu3/mtu3_hw_regs.h | 6 + drivers/usb/mtu3/mtu3_plat.c | 8 + drivers/usb/mtu3/mtu3_qmu.c | 28 +- drivers/usb/renesas_usbhs/common.c | 19 +- include/linux/usb/ccid.h | 51 ++++ include/linux/usb/gadget.h | 4 + 30 files changed, 808 insertions(+), 282 deletions(-) create mode 100644 include/linux/usb/ccid.h