Message ID | 20231203154030.532880-1-amadeus@jmu.edu.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2294685vqy; Sun, 3 Dec 2023 07:50:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHu3KPEdq5hvVsSWm+811iHz/ywwTcwpJWPcwcB5ENqd0D21VcKxuZrV/WI9SIq+647hFEC X-Received: by 2002:a17:902:ce81:b0:1d0:9609:382e with SMTP id f1-20020a170902ce8100b001d09609382emr241728plg.21.1701618614518; Sun, 03 Dec 2023 07:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701618614; cv=none; d=google.com; s=arc-20160816; b=x002JflLTWj/K+AVhsAzNFXqezrFStRcJEK08/g5Q/SMLvcXaoTf64eShmaNJrhqTA fTSv8XdkDFTgDp4BDgXaZDG1+tJaTPCTL9hwmdSIMTyesxvyHgrVDhA/rgM2dFSF4Rfq vOEHMM4oDqw9TYXHn9yT1xX6vlEwodnuTs4PeJbymOXBxZrijiwf529jwxmF/Pr5D7oK 0W/YHzsJyuQgHHou2Zs2rVsEw5AKGQwAIxqkS58L8BeDcao0dkgGOq7UvTWvNJImC8fL mxSmfy3mF6Q1vJKYA7a9ZsuCf94IJ7TJPZ/ezRsLd64I/V4IxJ95mEzWsOKtRsrYUYvD ZifQ== 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; bh=CVhMkYPcVlG2J9SR9smxdunn2tfygUowacxfAzi8X6I=; fh=yhK6as/3jzsgH4fc5IcFedDa48kAuUiKYuBh0U2Mv3s=; b=NAr5eUOSW3sBoVBflFIghBljTLMxXoZzYYYDdz4ryl4+ENqUYgYYT0rEUvazfMC/N0 E5P+S3SaX70xopldobeJvLLdVEM49bXGOgv2aQbu6g5rfRxc81BE2KJWdUx50gjXWjJZ kTH8pV8yi+BguTgJg1NdbZ37oVMmxgJM+4/1i03Ar+RNtVCA933W9oP2OxBKeE9FEtLt fA4d2HrJXEsKfUk2cXlhod9cv/vuG14CQvS1tpMr247sltc2NKHg3UJU7sNesA6iLmXH 8JtG5hKvhfoRxiAyx/igLSETBVWG0Qkulc1EVTvPCq8wkZNtZHpB+bsxwX5UPXJr0Bnt 2nvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id jg6-20020a17090326c600b001d07b67c54asi1956488plb.335.2023.12.03.07.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 07:50:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 44DE180874F4; Sun, 3 Dec 2023 07:50:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233701AbjLCPtX (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Sun, 3 Dec 2023 10:49:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233685AbjLCPtU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 3 Dec 2023 10:49:20 -0500 X-Greylist: delayed 516 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 03 Dec 2023 07:49:26 PST Received: from mail-m25476.xmail.ntesmail.com (mail-m25476.xmail.ntesmail.com [103.129.254.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53A99F2 for <linux-kernel@vger.kernel.org>; Sun, 3 Dec 2023 07:49:25 -0800 (PST) Received: from Vostro-3710.lan (unknown [119.122.215.53]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 5828380009E; Sun, 3 Dec 2023 23:40:33 +0800 (CST) From: Chukun Pan <amadeus@jmu.edu.cn> To: Bjorn Andersson <andersson@kernel.org> Cc: Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Rob Herring <robh+dt@kernel.org>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan <amadeus@jmu.edu.cn> Subject: [PATCH v2 1/1] arm64: dts: qcom: ipq6018: fix clock rates for GCC_USB0_MOCK_UTMI_CLK Date: Sun, 3 Dec 2023 23:40:30 +0800 Message-Id: <20231203154030.532880-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCGkhNVk9KQh9MGEhKQklKHVUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKQlVKSUlVSUpOVU5IWVdZFhoPEhUdFFlBWU9LSFVKSktISkNVSktLVUtZBg++ X-HM-Tid: 0a8c3056a3e8b03akuuu5828380009e X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NyI6KCo6Ezw0GgkPLT4JNxxC UVYwFEJVSlVKTEtKTUpDS0hPSk1MVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUpK QlVKSUlVSUpOVU5IWVdZCAFZQUlKT043Bg++ X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 03 Dec 2023 07:50:12 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784276440196319826 X-GMAIL-MSGID: 1784276440196319826 |
Series |
[v2,1/1] arm64: dts: qcom: ipq6018: fix clock rates for GCC_USB0_MOCK_UTMI_CLK
|
|
Commit Message
Chukun Pan
Dec. 3, 2023, 3:40 p.m. UTC
The clock provided by XO is 24MHz, not 20MHz.
Fixes: 5726079cd486 ("arm64: dts: ipq6018: Use reference clock to set dwc3 period")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
---
Changes in v2:
* No changes, resend due to error link to other threads.
arch/arm64/boot/dts/qcom/ipq6018.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 03/12/2023 16:40, Chukun Pan wrote: > The clock provided by XO is 24MHz, not 20MHz. That does not look like XO, but GCC_USB0_MOCK_UTMI_CLK > > Fixes: 5726079cd486 ("arm64: dts: ipq6018: Use reference clock to set dwc3 period") > Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Best regards, Krzysztof
> That does not look like XO, but GCC_USB0_MOCK_UTMI_CLK
I don't have the datasheet, but the reference clock (XO) is 24MHz,
and I receive the following warning:
clk: couldn't set gcc_usb0_mock_utmi_clk clk rate to 20000000 (-22), current rate: 24000000
Thanks,
Chukun
On 05/12/2023 04:02, Chukun Pan wrote: >> That does not look like XO, but GCC_USB0_MOCK_UTMI_CLK > > I don't have the datasheet, but the reference clock (XO) is 24MHz, > and I receive the following warning: > clk: couldn't set gcc_usb0_mock_utmi_clk clk rate to 20000000 (-22), current rate: 24000000 Referencing XO in commit msg is confusing. Anyway, answer to such error is not necessarily change the clock rate. What if it must be 20 MHz? You just ignore such requirement... Best regards, Krzysztof
> Referencing XO in commit msg is confusing. Anyway, answer to such error > is not necessarily change the clock rate. What if it must be 20 MHz? You > just ignore such requirement.. The downstream QSDK kernel [1] and GCC_USB1_MOCK_UTMI_CLK are both 24MHz. Judging from these commit [1][2], I think they forgot to make changes here. 1. https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/commit/486c8485f59 2. https://github.com/torvalds/linux/commit/d1c10ab1494f09eb12fa6e58fc78bb28d44922ae Thanks, Chukun
diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 2399d16f147e..d114c8096347 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -621,7 +621,7 @@ usb3: usb@8af8800 { <&gcc GCC_USB0_MOCK_UTMI_CLK>; assigned-clock-rates = <133330000>, <133330000>, - <20000000>; + <24000000>; resets = <&gcc GCC_USB0_BCR>; status = "disabled";