Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp850973imw; Fri, 8 Jul 2022 13:00:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sbXBO4hMpET6XALpU2X7ad5pBRzBoE/tBrz0sf3bUqc9p/bHZIXUtXmA4GmCmUTrq54gFj X-Received: by 2002:a17:907:9005:b0:718:391:45e with SMTP id ay5-20020a170907900500b007180391045emr5141816ejc.616.1657310417296; Fri, 08 Jul 2022 13:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657310417; cv=none; d=google.com; s=arc-20160816; b=keDcUGCMuEsvKv3pIxnBvZA9RQ/dh7+TqovJ1QAD/3K8ep7MMjnK7KoQUIWfacYstG V3ZZX5H9C2UA2S7ZMKCCqu1gUTBzMzDVLc2OjzR5YosVUnbiuir+kjgRTjYlvNmHxfHp 4GjN3v8X1yQSBfqHoyVueCwXppS/am7CAKTmXQnmV0PFV4h33toxFbvfItuuAn8Pp5K/ 93oLoFOSkpmsLZYjqeY4IdFfQHLg5tPpucRIng+klofwow/yJdwGHXdOeC7MS8CxJG1k /qFsY3xhrVKnFNC1k885VPJ1N9mAQRLGOCSLFYsKGrjc48kmEJe8eY1S6corrtWJbEjD RSOw== 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 :dkim-signature:dkim-filter; bh=Xn98MR7V1F/LIQ3Yu3hI7bvvVoawgSacfNBPSyIHRWs=; b=XnqeERKYrPY02ppRDJSLGP8/kp5ppipMuFMzoe+SuMq7SQXngGzl3foofpIPZcPx3r VGmqGkYOwF4jI7q+lW9OlMUbDqkwkmB2ZSBDORCJGUGM5zMShvykG9lBsYc+XUjwepc5 GKLK9SRZ1KPWn343/NAVDkBFil+7jGNhLkJNb0GAB1MqJRk+rLCm77KU9LsRZNk0PBLs HBvUvq+jPFXk9e+r0EF0RuUAmdKObW7E5QFbU1yil0JOWc9dDpbRr1YVQUZJmliRI0Lo 1Pf0xXCyvbzzooFmmFNBUmCvueXPbTi/M9icMxH98eCnqnfZHChdv02tS90ArzNggEj2 lsng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b=I+9yD5I6; 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=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa44-20020a17090786ac00b00707aefb3cc2si5177849ejc.510.2022.07.08.12.59.50; Fri, 08 Jul 2022 13:00:16 -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=@baikalelectronics.ru header.s=mail header.b=I+9yD5I6; 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=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239828AbiGHT2e (ORCPT + 99 others); Fri, 8 Jul 2022 15:28:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239583AbiGHT2Y (ORCPT ); Fri, 8 Jul 2022 15:28:24 -0400 Received: from mail.baikalelectronics.com (mail.baikalelectronics.com [87.245.175.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 81EF05A478; Fri, 8 Jul 2022 12:28:21 -0700 (PDT) Received: from mail (mail.baikal.int [192.168.51.25]) by mail.baikalelectronics.com (Postfix) with ESMTP id A381A16C4; Fri, 8 Jul 2022 22:30:03 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.com A381A16C4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1657308603; bh=Xn98MR7V1F/LIQ3Yu3hI7bvvVoawgSacfNBPSyIHRWs=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=I+9yD5I6bNPsheWWKXHnd51rWKfVxWMTVu9RgSWqFT/fBRvQeV/T8+2qgO/jTS+P0 lC4j/TQrMt17FrQA1YJOmV5KsZl+WphcnPax5Aatt3cFIdpgpt5Vkb0dPAhEpKqj8Q zRQE7jHYl/b5o0DkejkTEI3ccSjOtUZeUcnGYQ5o= Received: from localhost (192.168.53.207) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 8 Jul 2022 22:28:16 +0300 From: Serge Semin To: Stephen Boyd , Philipp Zabel , Michael Turquette CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Thomas Bogendoerfer , , , Subject: [PATCH v6 2/7] clk: baikal-t1: Fix invalid xGMAC PTP clock divider Date: Fri, 8 Jul 2022 22:27:20 +0300 Message-ID: <20220708192725.9501-3-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220708192725.9501-1-Sergey.Semin@baikalelectronics.ru> References: <20220708192725.9501-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR 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 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 --- 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", -- 2.35.1