From patchwork Thu Nov 15 06:56:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thinh Nguyen X-Patchwork-Id: 10683627 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 765F314DB for ; Thu, 15 Nov 2018 06:56:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65FD42C12F for ; Thu, 15 Nov 2018 06:56:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A2312C220; Thu, 15 Nov 2018 06:56:52 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 015672C20A for ; Thu, 15 Nov 2018 06:56:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728527AbeKORDY (ORCPT ); Thu, 15 Nov 2018 12:03:24 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:47550 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728419AbeKORDY (ORCPT ); Thu, 15 Nov 2018 12:03:24 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 1B8B424E0AE4; Wed, 14 Nov 2018 22:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1542265010; bh=erAyEQBfJGeLJo5U3YtbKl6eosYxewmcjczk1425Dzk=; h=Date:In-Reply-To:References:From:Subject:To:CC:From; b=c2KU19F0rujIU9dcCJIkyeYHbZxBpe0OyFPC5D3OyGt4Jp+8oc3EjHRBN8yekvYOo 50tCrV2t+mEiVZLpmFm8qOy2SZFDTJUAnI9GlPD9o/iy3hR/29wUMuMWdAsjXWT9P3 N/S/EIvI9qV4WlexFkj7yAgkkZy4ixnbWnTrfi+nqunJ6cQNZOWGOq4ZMnqimN/x8L hOelmYMTiaSF+y9QJv09NDOmvXuxiXOBDDsfTn8FkfUmyhfypO3q5tUHtX2vHkB9uW /bqIUbMaB2i3SqrVmIkY1FRSp9aENuZj6aA31AZf4sRRVBxvz0uSUQEzi8I1PzdZKr UuKKNjqQJeBag== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id 060D75E5D; Wed, 14 Nov 2018 22:56:50 -0800 (PST) Received: from US01WEHTC2.internal.synopsys.com (10.12.239.238) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 14 Nov 2018 22:56:49 -0800 Received: from te-lab16 (10.13.184.20) by US01WEHTC2.internal.synopsys.com (10.12.239.238) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 14 Nov 2018 22:56:48 -0800 Received: by te-lab16 (sSMTP sendmail emulation); Wed, 14 Nov 2018 22:56:48 -0800 Date: Wed, 14 Nov 2018 22:56:48 -0800 Message-ID: In-Reply-To: References: From: Thinh Nguyen Subject: [PATCH v7 1/2] usb: dwc3: Add disabling of start_transfer failure quirk To: Felipe Balbi , , , Rob Herring , Mark Rutland CC: John Youn MIME-Version: 1.0 X-Originating-IP: [10.13.184.20] 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 DWC_usb31 peripheral v1.70a-ea06 and prior needs a SW workaround for isoc START TRANSFER command failure. However, some affected versions may have RTL patches to fix this without a SW workaround. Add this quirk to disable the SW workaround when it is not needed. Synopsys STAR 9001202023: Wrong microframe number for isochronous IN endpoints. Signed-off-by: Thinh Nguyen Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt index 7e33e53e7c29..8e5265e9f658 100644 --- a/Documentation/devicetree/bindings/usb/dwc3.txt +++ b/Documentation/devicetree/bindings/usb/dwc3.txt @@ -39,6 +39,9 @@ Optional properties: - resets: a single pair of phandle and reset specifier - snps,usb2-lpm-disable: indicate if we don't want to enable USB2 HW LPM - snps,usb3_lpm_capable: determines if platform is USB3 LPM capable + - snps,dis-start-transfer-quirk: when set, disable isoc START TRANSFER command + failure SW work-around for DWC_usb31 version 1.70a-ea06 + and prior. - snps,disable_scramble_quirk: true when SW should disable data scrambling. Only really useful for FPGA builds. - snps,has-lpm-erratum: true when DWC3 was configured with LPM Erratum enabled