From patchwork Thu Nov 8 20:06:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thinh Nguyen X-Patchwork-Id: 995169 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="LuZrrtYx"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42rZ7T4j7Tz9s7h for ; Fri, 9 Nov 2018 07:07:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727037AbeKIFoC (ORCPT ); Fri, 9 Nov 2018 00:44:02 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:46810 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbeKIFoC (ORCPT ); Fri, 9 Nov 2018 00:44:02 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id BB78024E0D3E; Thu, 8 Nov 2018 12:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1541707620; bh=opCSGNTHEoFfYR0YpSiwWbv2x08SOqyC7kX5DoFPvMs=; h=Date:In-Reply-To:References:From:Subject:To:CC:From; b=LuZrrtYx9G79DK4t94swNnGgJ0M53ED51doTF+B5YSBrKBP9Qq37Yb+kU6uqIgZ58 e9wcKmafB9hiFZ93+5XAI6ADdo6tQNPAKTt+KUW7C23PP6orBec7w7PMKX7dFl5V1L crPiBpcfULs1lSXiMTClg5TYJJsLVbKd16nhYQbJNF1c+czlbdIMh27Mo/59qZiiK8 n9LgOVGdZQ1F9gwXgAi4WOfNhGm8uLJMtrbZa4+PCOXOEFuOXKkt0zBso+wJRLO+/u 3+H64fbAUSiz0kDA4CUSi00ePoYWiX0bOX7yqi6VMMH3UtokiBee43EO7Z15LMWLWy Wlcd/QIeh+J+Q== Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id A6E6D5785; Thu, 8 Nov 2018 12:07:00 -0800 (PST) Received: from US01WEHTC3.internal.synopsys.com (10.15.84.232) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 8 Nov 2018 12:07:00 -0800 Received: from te-lab16 (10.13.184.20) by US01WEHTC3.internal.synopsys.com (10.15.84.231) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 8 Nov 2018 12:06:57 -0800 Received: by te-lab16 (sSMTP sendmail emulation); Thu, 08 Nov 2018 12:06:57 -0800 Date: Thu, 8 Nov 2018 12:06:57 -0800 Message-ID: In-Reply-To: References: From: Thinh Nguyen Subject: [PATCH v6 2/3] 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 Acked-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 636630fb92d7..fc64db0a7a0a 100644 --- a/Documentation/devicetree/bindings/usb/dwc3.txt +++ b/Documentation/devicetree/bindings/usb/dwc3.txt @@ -37,6 +37,9 @@ Optional properties: - phy-names: from the *Generic PHY* bindings; supported names are "usb2-phy" or "usb3-phy". - resets: a single pair of phandle and reset specifier + - 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,usb3_lpm_capable: determines if platform is USB3 LPM capable - snps,disable_scramble_quirk: true when SW should disable data scrambling. Only really useful for FPGA builds.