Message ID | 20221124220147.102611-1-konrad.dybcio@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3633105wrr; Thu, 24 Nov 2022 14:14:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7EJVBWBKvD5GVMEgtpmMQpvB100dr9FtHc8AECSfxZ2MtH69aBzD3hbw9bpHSQ6OOR4qpu X-Received: by 2002:a17:907:c016:b0:7a4:98cc:7c8e with SMTP id ss22-20020a170907c01600b007a498cc7c8emr19618943ejc.48.1669328045986; Thu, 24 Nov 2022 14:14:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669328045; cv=none; d=google.com; s=arc-20160816; b=myYYkC64NQjQ7n9MKLU6OwVMAWSCsUbutq4G/9EKvZdpMG7SllCZPozT4k+c9dMRWP bqOiAYvYNSU+bZ501iVTjXgCyfBHaOLzjqNALKuUDjaSxG/2Q54WGMD0FZNKkb3okznp ovk+maFXRSDdchGsPYwQoglM1frj8G1MnH61AomINvzXDr1HWwl7Fn18S8Iw1rFtDrj2 LsoFbkMH6QLJ332fbjEBprBpGypIQMivhVzhXPc+G/abPlZFMJt+L/xrmgD9GGMp0vwg PxToLGdOTx5ekpOniEkvD5+YiZg50KnXQMJLFKk8hBivXx4esWLFBxr4lr58kG+Hgm4b 5dKw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=hiaWqrX53hfzzHEps4oYeXEWJEP8SB8VJFJPlW92C7M=; b=CKqe8BTWHj6oVIIxpgDotQVaoZHGKRzvMkn/FbZy6HEZJkk4Gz2pKuuS4sTiDG0Ysc V0GrVeK0kFPnic8jSDgz0rd+wtAfGMqiAzEzihjsrNKjopfVOUIWksrw8k1wZmFxdl1t hBeef8sEB5lLZ0gDD+eycJ7z94ttoy/XuIlzr7VChnn1X1M/dPL/clsmIO9kVF/NvCDI m8NMAw3dwaGqS9DK92D9UblX2jidwMFXTp6kCgro9Jkb3uYweLiuGLyhXWPP7lI5Bjsk T9MOxS2sOP96PWd05jEz5UuHjDCFYTY7jP8yXQUHkDHW4bbpf2ntknGCcl8axUcjZ99e QPYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="q0uH/ZH2"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a056402519000b00461c0fd2597si1925365edd.89.2022.11.24.14.13.41; Thu, 24 Nov 2022 14:14:05 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b="q0uH/ZH2"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229672AbiKXWCA (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Thu, 24 Nov 2022 17:02:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiKXWB6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 24 Nov 2022 17:01:58 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D98A881F8F for <linux-kernel@vger.kernel.org>; Thu, 24 Nov 2022 14:01:56 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id r12so4269750lfp.1 for <linux-kernel@vger.kernel.org>; Thu, 24 Nov 2022 14:01:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hiaWqrX53hfzzHEps4oYeXEWJEP8SB8VJFJPlW92C7M=; b=q0uH/ZH2T9mzxpMxhmCPh++U8bgQ9REutxmlKqmCJio79K/P50x0nyM1hskgpEfSbj ndkwKcE25OKhBQZ0OF0VtgOVseaVw/IDnbZogy0P5hDxrfU20scFX3VI59fQpuy8eNhU dCwL3pdyXH1QisiCfEQM6zhIQREEWoXZyadP5rN/hTdyzR8E8u88eppWKZrE9MgMT3ox 1gA1o34PELNPWcggHLZCDpzIjKWz2PJCt4YgvFTdncu9zECYCThQNYqzjzY/opwfhkco JptHAyNMgHVOSZjGWLhstXzCFZ4+H3+KaCqUiIBQ/Rxfb4jPJefd1xdEK8jWUP3AMZjb DnGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hiaWqrX53hfzzHEps4oYeXEWJEP8SB8VJFJPlW92C7M=; b=xpqbBfq5eXRjUG+Obevts2UiJmVhfHp/r3xZw1nWmLD7sC6QX1yG/TEu/Fto6Kzmjf NVvJqy+u/cFrokTaUuyEwl7BJn90GEzUJ7R9cFp+YzWNMWIw/Mpwg4hXOkjV9pKu2JQ3 LwTH91Rw35kndTPb/2OYsGT1JqYBVvRxESoUOijvseC5tsvukNh7clyzbsN2ybRJiPH3 nqML3UFbq4bsRDRtSTQ6vf1vFTd/KhDFgghmkedjHqIWZdX9JQhoJEYAqUoZWC9u2EI6 iltPQXP4+i/gnsViR5aismG3CCQkZTMZqjx+999jFhzJ6WJxwJhR8Hweplytu/MRNzjd +hbg== X-Gm-Message-State: ANoB5pmiuLXh1B5nXQ3JX7UPfofop9EuY3eiyqlTojrXlppwhJcT/cYl XH9xUNk9N6UDV93RSNg02kqMIg== X-Received: by 2002:a05:6512:3992:b0:4ae:5dc5:82c5 with SMTP id j18-20020a056512399200b004ae5dc582c5mr13244750lfu.2.1669327315153; Thu, 24 Nov 2022 14:01:55 -0800 (PST) Received: from localhost.localdomain (95.49.32.48.neoplus.adsl.tpnet.pl. [95.49.32.48]) by smtp.gmail.com with ESMTPSA id p11-20020a05651212cb00b00497feee98basm246933lfg.274.2022.11.24.14.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 14:01:54 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> To: ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: msm8996-tone: Fix USB taking 6 minutes to wake up Date: Thu, 24 Nov 2022 23:01:47 +0100 Message-Id: <20221124220147.102611-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750417325057453539?= X-GMAIL-MSGID: =?utf-8?q?1750417325057453539?= |
Series |
arm64: dts: qcom: msm8996-tone: Fix USB taking 6 minutes to wake up
|
|
Commit Message
Konrad Dybcio
Nov. 24, 2022, 10:01 p.m. UTC
The hardware turns out to be pretty sluggish at assuming it can only
do USB2 with just a USB2 phy assigned to it - before it needed about
6 minutes to acknowledge that.
Limit it to USB-HS explicitly to make USB come up about 720x faster.
Fixes: 9da65e441d4d ("arm64: dts: qcom: Add support for SONY Xperia X Performance / XZ / XZs (msm8996, Tone platform)")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
No words.
arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
Comments
On 24/11/2022 23:01, Konrad Dybcio wrote: > The hardware turns out to be pretty sluggish at assuming it can only > do USB2 with just a USB2 phy assigned to it - before it needed about > 6 minutes to acknowledge that. > > Limit it to USB-HS explicitly to make USB come up about 720x faster. > > Fixes: 9da65e441d4d ("arm64: dts: qcom: Add support for SONY Xperia X Performance / XZ / XZs (msm8996, Tone platform)") > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > No words. > > arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi > index 12a7b6d91dbe..0ab9687f3406 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi > @@ -991,10 +991,6 @@ touch_int_sleep: touch-int-sleep-state { > }; > }; > > -/* > - * For reasons that are currently unknown (but probably related to fusb301), USB takes about > - * 6 minutes to wake up (nothing interesting in kernel logs), but then it works as it should. > - */ > &usb3 { > status = "okay"; > qcom,select-utmi-as-pipe-clk; > @@ -1003,6 +999,7 @@ &usb3 { > &usb3_dwc3 { > extcon = <&usb3_id>; > dr_mode = "peripheral"; > + maximum-speed = "high-speed"; > phys = <&hsusb_phy1>; > phy-names = "usb2-phy"; > snps,hird-threshold = /bits/ 8 <0>; Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
On Thu, 24 Nov 2022 23:01:47 +0100, Konrad Dybcio wrote: > The hardware turns out to be pretty sluggish at assuming it can only > do USB2 with just a USB2 phy assigned to it - before it needed about > 6 minutes to acknowledge that. > > Limit it to USB-HS explicitly to make USB come up about 720x faster. > > > [...] Applied, thanks! [1/1] arm64: dts: qcom: msm8996-tone: Fix USB taking 6 minutes to wake up commit: 43069b9cd358aebc692e654de91ee06ff66e26af Best regards,
diff --git a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi index 12a7b6d91dbe..0ab9687f3406 100644 --- a/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi @@ -991,10 +991,6 @@ touch_int_sleep: touch-int-sleep-state { }; }; -/* - * For reasons that are currently unknown (but probably related to fusb301), USB takes about - * 6 minutes to wake up (nothing interesting in kernel logs), but then it works as it should. - */ &usb3 { status = "okay"; qcom,select-utmi-as-pipe-clk; @@ -1003,6 +999,7 @@ &usb3 { &usb3_dwc3 { extcon = <&usb3_id>; dr_mode = "peripheral"; + maximum-speed = "high-speed"; phys = <&hsusb_phy1>; phy-names = "usb2-phy"; snps,hird-threshold = /bits/ 8 <0>;