Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp130075rwe; Tue, 18 Apr 2023 19:02:44 -0700 (PDT) X-Google-Smtp-Source: AKy350YpVTUcQcyGjZKDdpoGJQItpttkmg5zxW0e5RNfOvp2DXI/aZhR/Xd/ATezy6WWY6sPyxGJ X-Received: by 2002:a17:903:1112:b0:1a2:70ed:6cd9 with SMTP id n18-20020a170903111200b001a270ed6cd9mr4236877plh.22.1681869764139; Tue, 18 Apr 2023 19:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681869764; cv=none; d=google.com; s=arc-20160816; b=sbAqnG55W9WzHsOEtD6QRB27fTdOA1nBB+q+SJ3VJj7FPMnm1JktmTytqJjSnLBL6u H8KvTDF6lPEbbX2uIHCx5pQIsKZCQxji5gbyUzSwnyFaEwwEsW0Zm21WbynhcQw4Y+xA hThULogPKDLAMa84852y4Z9gwPL4zXxJ0zb8NidIw9oOWXwL4fjAmUWYk9X4GDGii5fR wJmY/cyyegRMt4jSU1++BXi0hPDRxQ5gqYcJyTaIc2EDaBQjqlH4n0qyy8r1NofMQYV1 yCcUv9cfhS9V9HkEjkg4moeTt/poN1wa99YAEGxOf1E++kH+cMmGfuvXsVmkYbZREj97 Pm3Q== 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=nVkbBJ+5F7PxrS7pDDOtNcIZoxZ25uBkxMF6fg/8eaU=; b=EjvL/cUIHgv5LurFmb60aD2/Stnnp1YNtQlfTHhY1PQlQ29mkwtVL6Y8gPlEct7Lmm sfA9D86LETVeiv1c2AIcINOvEzekGu6AbAMkb8B02tcJcodz/natSFMWffVqwbaVR48X fjM/ml+IzCHxlrtOzVPATvifQP2rm3GgYq+uuPaU0cPaDkWendWk6ch+8nxEHqKAElKf UuXbaH4mBRIyJzyZ1GOYzYHw0WO98oPASIVna73+2jpLrMv+u+8RQOXuD5HO4s+2nApB I1Cd8NH/kVVLStEY8riGw8T1cbh/VcPX/z+39kFbQAdJDU1T/PTwJ6BbF9Pn2jR15h5Z 4iPQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a1709026b4200b0019e4154578esi14763638plt.76.2023.04.18.19.02.32; Tue, 18 Apr 2023 19:02:44 -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 S231673AbjDSCBG (ORCPT + 99 others); Tue, 18 Apr 2023 22:01:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbjDSCBA (ORCPT ); Tue, 18 Apr 2023 22:01:00 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6E16EAB; Tue, 18 Apr 2023 19:00:58 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33J20jaP6021960, 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 33J20jaP6021960 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Wed, 19 Apr 2023 10:00:45 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) 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; Wed, 19 Apr 2023 10:00:45 +0800 Received: from RTEXH36505.realtek.com.tw (172.21.6.25) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 19 Apr 2023 10:00:44 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server id 15.1.2375.32 via Frontend Transport; Wed, 19 Apr 2023 10:00:44 +0800 From: Stanley Chang To: Thinh Nguyen CC: Stanley Chang , Rob Herring , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , , , Subject: [PATCH v4 2/2] dt-bindings: usb: snps,dwc3: Add 'snps,parkmode-disable-hs-quirk' quirk Date: Wed, 19 Apr 2023 10:00:43 +0800 Message-ID: <20230419020044.15475-2-stanley_chang@realtek.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230419020044.15475-1-stanley_chang@realtek.com> References: <20230419020044.15475-1-stanley_chang@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-KSE-ServerInfo: RTEXMBS03.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,T_SCC_BODY_TEXT_LINE 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 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 --- 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 -- 2.34.1