From patchwork Mon Oct 24 11:31:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9433 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp479185wru; Mon, 24 Oct 2022 07:18:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4zvro6pbnfqHF+JffYgxZBH53Tbn/j0eGmB20xAoEIogxkaLz+gvUG1n0qpMNUnrnmnBIP X-Received: by 2002:a17:906:5d11:b0:78d:a41c:6a2d with SMTP id g17-20020a1709065d1100b0078da41c6a2dmr27528314ejt.215.1666621120734; Mon, 24 Oct 2022 07:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666621120; cv=none; d=google.com; s=arc-20160816; b=tVz1sqSBpe7tPI4z4mF04RoAH48823I4ATT5TRxNfNoWNcLH5pu9eJDPB/7a3EQD2M +LgVCzEVj3CtX6mP8GvjnXDQoMK4As27MUFCYAGvLuvNLm1NKZDHvqBtjpAn4Sgl4UFK 0LKuDv5B8InNR7Ul3z8OIKmYoZOGo9ffZn+tpkpHzBeQJ7iXByNX36NfxxRcqrIjUc0e pZvyGeqRmK0X4XYKmmrbJAjYi96e6qFbaBv3rb4gzp5ISSq3k8dnGkIT+yj1la+BZB5K oCth18RgIwjMgILxIbuDgXH1XSVTQ/HFztEyA2Y57etaQy0OJ5A5jZF6y254oTxBjCE3 ElVQ== 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=Q7T89dW9ceDYfgIAcsId1snaC6cuWrZkqlX0SF2CWLfvSL9I7bza1WoIsK0pUR6XWQ kbs+2OHoBnVx8t/FHk+1+E1fjkQZucc9BN5bKAXFSxLty5sAF4pT39KhDEbKF3OXVsZs YJLVyUwwVEkTu+ZwWq+LX+og/TwUUMWkwKg2v1IJz0uNFIbQd2/fGVy+ChXcR7OSu2r6 TPUHpwuZB21RGFJ1XdSblP3j3NqDXIbSsc46moR/wr7zdxmQ1b2Vf0MgLn9MyQ/PICNt z1Czyw12ss5CRyRS7Z7bj3Gb9ZmH1dNIQ2+aitECdXMezY8D48XDSpWsSw/ZzhfozIQc dwUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OpeGZLtY; 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 m7-20020a056402510700b0045935adb5b1si30877965edd.395.2022.10.24.07.18.10; Mon, 24 Oct 2022 07:18:40 -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=OpeGZLtY; 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 S233296AbiJXOHT (ORCPT + 99 others); Mon, 24 Oct 2022 10:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236851AbiJXOD0 (ORCPT ); Mon, 24 Oct 2022 10:03:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87CEC1497; Mon, 24 Oct 2022 05:48:45 -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 464F261335; Mon, 24 Oct 2022 12:48:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 533DBC433C1; Mon, 24 Oct 2022 12:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666615705; bh=hDIWTXnFPYaCL2NW+LTf3CWQC5jgrfHnhKhZtQhXzUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OpeGZLtYGoYVTzMtQ1fmXHymWTe2ijDdZt9crcqpSrx+BGs9qvExhyoo8KB6HXdM0 wQ//UfSQI1AQZqVAjlPQx8oT0qtp1SJOuQ7cO4r9Jnl02CfKYrPtiM2wONHPxuDZnB YyKOV/sHPmnSS94cZALnYUmk3LBU7fcfRbT0rRmU= 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.15 352/530] clk: baikal-t1: Fix invalid xGMAC PTP clock divider Date: Mon, 24 Oct 2022 13:31:36 +0200 Message-Id: <20221024113100.950806998@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@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?1747578908510870841?= X-GMAIL-MSGID: =?utf-8?q?1747578908510870841?= 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",