From patchwork Thu Apr 13 10:09:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?U3RhbmxleSBDaGFuZ1vmmIzogrLlvrdd?= X-Patchwork-Id: 82892 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp922182vqo; Thu, 13 Apr 2023 03:12:11 -0700 (PDT) X-Google-Smtp-Source: AKy350aCSSpRrBSp0LLDJbrN8bKkkraWJLtSimOYH2Q93zXwHMnDkdenuecAfhjRY6EqbXkuW7iR X-Received: by 2002:a17:906:f847:b0:94c:a077:c980 with SMTP id ks7-20020a170906f84700b0094ca077c980mr2072313ejb.69.1681380731161; Thu, 13 Apr 2023 03:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681380731; cv=none; d=google.com; s=arc-20160816; b=KMhNA0rMHnfVWK4FQlgwsUlF2sjcR26qhUuJx52XMNc+wt9LacD3AFb2DVd1EEPO8J COUQOj9BPNVetdAir6+X9ppMVTYClxRTrLsZCJCxbDiKl3l4gJOBfsxnpRQau9RbpbCQ qOnuRq80Zw+1xhTaDxn1Nxva8wmRTVWnWXz292FLBTy+S9ei28c3AZI8/m/+HTs9QEZ9 sCeWm+JKNPYsC86XhbTwRsUazvqPgHSgVw+wy5vQnZD2evWqNUTe9nynqnIX9PuG0/c2 6PXIt19LcDi6kbEZsYiwVR7FozKzCqvVnFyShJyHjnQWT7Uez15V8qEkwZAXVRiepCSq 6yyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=AIa0OEUv9vsqbwBmFVrWkl8v4D5z/w15/6vrnovkEbM=; b=yszNaWXiBAjYBE+neA4RGrV1XDUnY3x0yp3iqg4ICrF/7v/Wqt3ODAiU3MTv8LVfdw cYvzvj3abN2m1eOoAWIduQby4CcV52rifN9fyFsehrrGjbu/PUMjhzjMiY3BEuF/p3zg lUm1lVnIIO0fmzW/clLrkZJm8VmN+lx+VH3L4DHy1+Iz5ZSt7jXUyX/RbEmkjU9vmNyG yWjAGSZraRqEZ4szmDMZwXMrujeN3j1rJ873OxuznbFU2FG8kVU5tpYooO/i4dkEB/LC T/Ei+LQ5IIxsg79HRCe9WcFfP2aEBDEbX2/kkD8HxgDIHRep3ja1pyqX4l/m5hZpeDz4 aTqg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020aa7c513000000b004fac11e70adsi1469634edq.637.2023.04.13.03.11.45; Thu, 13 Apr 2023 03:12:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229935AbjDMKJg (ORCPT + 99 others); Thu, 13 Apr 2023 06:09:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjDMKJe (ORCPT ); Thu, 13 Apr 2023 06:09:34 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B76CAF; Thu, 13 Apr 2023 03:09:31 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33DA8rVB2018677, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 33DA8rVB2018677 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Thu, 13 Apr 2023 18:08:53 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 13 Apr 2023 18:09:15 +0800 Received: from RTEXH36506.realtek.com.tw (172.21.6.27) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 13 Apr 2023 18:09:15 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Thu, 13 Apr 2023 18:09:15 +0800 From: Stanley Chang To: Thinh Nguyen CC: Stanley Chang , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Felipe Balbi , , , Subject: [PATCH v3 2/2] dt-bindings: usb: snps,dwc3: Add 'snps,parkmode-disable-hs-quirk' quirk Date: Thu, 13 Apr 2023 18:09:14 +0800 Message-ID: <20230413100914.7890-2-stanley_chang@realtek.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230413100914.7890-1-stanley_chang@realtek.com> References: <20230413100914.7890-1-stanley_chang@realtek.com> MIME-Version: 1.0 X-KSE-ServerInfo: RTEXMBS01.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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?1763055481415053614?= X-GMAIL-MSGID: =?utf-8?q?1763055481415053614?= Add a new 'snps,parkmode-disable-hs-quirk' DT quirk to dwc3 core for disable the high-speed parkmode. For some USB wifi devices, if enable this feature it will reduce the performance. Therefore, add an option for disabling HS park mode by device-tree. In Synopsys's dwc3 data book: In a few high speed devices when an IN request is sent within 900ns of the ACK of the previous packet, these devices send a NAK. When connected to these devices, if required, the software can disable the park mode if you see performance drop in your system. When park mode is disabled, pipelining of multiple packet is disabled and instead one packet at a time is requested by the scheduler. This allows up to 12 NAKs in a micro-frame and improves performance of these slow devices. Signed-off-by: Stanley Chang Acked-by: Rob Herring --- v2 to v3 change: 1. Add the comment message. 2. cc the right maintainers. --- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml index be36956af53b..45ca967b8d14 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -232,6 +232,11 @@ properties: When set, all SuperSpeed bus instances in park mode are disabled. type: boolean + snps,parkmode-disable-hs-quirk: + description: + When set, all HighSpeed bus instances in park mode are disabled. + type: boolean + snps,dis_metastability_quirk: description: When set, disable metastability workaround. CAUTION! Use only if you are