From patchwork Mon Oct 24 11:30:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9217 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp459316wru; Mon, 24 Oct 2022 06:39:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5oxpzPdnucqk+IKsjA4V3QKJDk3eWJbkGXnpGZlxRLQCO+rfrObLwti/R9rRqRwYLmKLFC X-Received: by 2002:a05:6402:50cd:b0:45d:74d:93a2 with SMTP id h13-20020a05640250cd00b0045d074d93a2mr30595931edb.156.1666618759133; Mon, 24 Oct 2022 06:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618759; cv=none; d=google.com; s=arc-20160816; b=c++h9w5I0rPRh6wU0Y13+4UmfxOoc8WlR1qXBxnHZVp+CKZlxXBQ61EMgLTmHfCjmH trP8UEuh3QwJywuIHykI/WA2fLki6/qeqQRQv3iYOEAA8jcS5tUqWyQ7XTh5PS02Yy4e FT9NKSQSzSE8sb/gzYE5vXANTp+bTYDcUI6K//iGkwTtjk4QgVo4sYqiEatnmcV7R56q UDN42TnNPAgD8HxmXNOj88SkIf0rc/SQJGpz2nI/vSG8U5/QXW6CWFOZ+RLHPoyPlicy Wu0Sn+F1D09cWyqBKfIR66tfn+AMOE28Zy7lUVY+RF84mtyt/MhtwG7dtdPk1k5sGuwM ZoZQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=g1BD2pRscx3BLuLNatvPMtlqb/wTaXyZbIfEzXs7GjY=; b=NtrzM6AnSlwEHVUF4B9MR1scq5/lQYpAzFFLeMMPJXDT11pwDa+GMNa62o1hKRITt4 nMCAD6axrYdU7Dmtl/1c00lARMXRrae6EVoVnnMFqaJF8mBwhrG6ruNmPKlocgo53gh3 Wokx28ojtdxya4e+F4zD9ZbRft0JvtSAF7BvhhFXdz2h01MC3SCdXfqN43vaDA7sZw1d KJ8aS5+5Q/4Pvpav0ZLmlgYYmUHoczD1kTScqr9AlJjNdz0+JKNLlP+lQ5TDvXOnTVGa gnUk2O2Bt/2PzwyGEycHlexKFMT7bUmuSyfvchTCnuN08Hfx98QBRturEOkRWbZDgfgU MPzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PglcMG0e; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fj2-20020a1709069c8200b0076f0940cb28si7385393ejc.175.2022.10.24.06.38.53; Mon, 24 Oct 2022 06:39:19 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PglcMG0e; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231539AbiJXNdE (ORCPT + 99 others); Mon, 24 Oct 2022 09:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236027AbiJXN3Z (ORCPT ); Mon, 24 Oct 2022 09:29:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 082F4A46E; Mon, 24 Oct 2022 05:32:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9403B61311; Mon, 24 Oct 2022 12:28:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3FE4C433D6; Mon, 24 Oct 2022 12:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614505; bh=hDIWTXnFPYaCL2NW+LTf3CWQC5jgrfHnhKhZtQhXzUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PglcMG0eDalz41gy9UovxkjYMW2kqdzwDxQf0pI8fjfsfWQjQPXfrR2RYjukZWNJf Dv0VRSfVVDJJuSIago3V+xHUmKROjembmL3UD3QJrJs2SjgbIGwN/TZgN0RgW+qh9g AqbEs1YIUtIFT5Ml9Q9zipAjviNwYGtw5JDQzA/o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Serge Semin , Stephen Boyd , Sasha Levin Subject: [PATCH 5.10 257/390] clk: baikal-t1: Fix invalid xGMAC PTP clock divider Date: Mon, 24 Oct 2022 13:30:54 +0200 Message-Id: <20221024113033.829094938@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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?1747576431623415079?= X-GMAIL-MSGID: =?utf-8?q?1747576431623415079?= From: Serge Semin [ Upstream commit 3c742088686ce922704aec5b11d09bcc5a396589 ] Most likely due to copy-paste mistake the divider has been set to 10 while according to the SoC reference manual it's supposed to be 8 thus having PTP clock frequency of 156.25 MHz. Fixes: 353afa3a8d2e ("clk: Add Baikal-T1 CCU Dividers driver") Signed-off-by: Serge Semin Link: https://lore.kernel.org/r/20220929225402.9696-3-Sergey.Semin@baikalelectronics.ru Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/baikal-t1/clk-ccu-div.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/baikal-t1/clk-ccu-div.c b/drivers/clk/baikal-t1/clk-ccu-div.c index f141fda12b09..ea77eec40ddd 100644 --- a/drivers/clk/baikal-t1/clk-ccu-div.c +++ b/drivers/clk/baikal-t1/clk-ccu-div.c @@ -207,7 +207,7 @@ static const struct ccu_div_info sys_info[] = { CCU_DIV_GATE_INFO(CCU_SYS_XGMAC_REF_CLK, "sys_xgmac_ref_clk", "eth_clk", CCU_SYS_XGMAC_BASE, 8), CCU_DIV_FIXED_INFO(CCU_SYS_XGMAC_PTP_CLK, "sys_xgmac_ptp_clk", - "eth_clk", 10), + "eth_clk", 8), CCU_DIV_GATE_INFO(CCU_SYS_USB_CLK, "sys_usb_clk", "eth_clk", CCU_SYS_USB_BASE, 10), CCU_DIV_VAR_INFO(CCU_SYS_PVT_CLK, "sys_pvt_clk",