Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4247246rwb; Fri, 30 Sep 2022 15:31:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4GW+pX2YS5T3w2HPLDJ0fESbXtMU04QYdV4SAVGkIeJEaedCjF1ErykjlPknPBimPISJLj X-Received: by 2002:a17:902:7101:b0:17a:a305:2715 with SMTP id a1-20020a170902710100b0017aa3052715mr10941775pll.144.1664577087994; Fri, 30 Sep 2022 15:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664577087; cv=none; d=google.com; s=arc-20160816; b=Bb0paUu/md8cNTh3kOmSyPVTqXN5kyvCHPtgQU6zzT2WW8TTwfe8iaedrs7KVW2gAT OqtGqjFYbr9Ja/hKRynWJDoVWPcO6M429TEtFej6Qk0IEYXeF+w0Qi/WwA5zs89DvRqH MA6JW8EoJqUy2OIStpzgjJwdWH8k59Tm0O66iea9a6vH3w7ZVXf2JF6XuJ6OHs5Wpt/Y 5h826IkZKK3FcpmR5rUXgav+HhlqkyvLYEYx/I+obI/OMNlRPlW+mCiHocuYTBx6PxLV LdNtTZFyXZnDYdxWqcccyR487ABskL7fx/1v+ukT6liBZhAn1XBBTSAJUlXD3KjbfBL5 M9Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=yYjZt83OjgtVPX4nAX1qCF2YXkuwqFpSV4m8Otl7M+I=; b=Bnyiz+fke0wUapqTkSR7MOpEwiRfzJXn3uPzZEGDHBpo/vsUUx0JmWpEH+DZrX0WyH xrM8DYKIv+H6dkmRalLpW6qpknp2plSLEeggk93/uzPB14GAuQ45yngj7ASz2HgXpkrh q7v4jBjI3Ss2f7NuFcTMXgFGJq0CJbET6PwAah8iySylOIExmpRfayElJbU0wwinklL5 Mv1+TjiYUeNVi6wEt/H8rxVPWbVN08NEBTmC7vim+iN3VWQ/+dU8z/wswuDYZz3sI9ss 0sDySMcdykq07gdsaVA9yumySR2Cn7GfaLNZBtxW8CoUphKfSurmZfEI7dDuKpljVu6Y 4Q+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rhvSwwe2; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a056a00228100b005420db11d75si4280615pfe.16.2022.09.30.15.31.14; Fri, 30 Sep 2022 15:31:27 -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=@kernel.org header.s=k20201202 header.b=rhvSwwe2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231420AbiI3VZ6 (ORCPT + 99 others); Fri, 30 Sep 2022 17:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232077AbiI3VZe (ORCPT ); Fri, 30 Sep 2022 17:25:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B5369C2CA; Fri, 30 Sep 2022 14:25:33 -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 ams.source.kernel.org (Postfix) with ESMTPS id E77C8B82A3E; Fri, 30 Sep 2022 21:25:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BA97C433C1; Fri, 30 Sep 2022 21:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664573130; bh=yYjZt83OjgtVPX4nAX1qCF2YXkuwqFpSV4m8Otl7M+I=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=rhvSwwe2L8xH2jxatogL3rHq+RJDvbREPwZiQ5Jo+Wdpbm8mhRXqjIAZXOF41EsZP 87Tft2xl8Q1g/kVmh/ttjUnkODguN4eVPbbpbbJVsX/GNXMjwP9m0fJ5P9VfT0gkhp kV2LdUR2OFGBDgnXT4hUxWIZLFYvIJXcawh5JYqD/NK05i2j7w2bRhGPav2fneUwRb askrwqcZZOUcdenJ1kwXFODuifoI7XwS67bJjoIOn4f2AjH7WD3W1eGh25ZXGyYE5J fJeh0C360lMkwCf8+x9XfLyc5tmWLkZ8ra6x4aWwPpse3yz3p+ptFrCONEVUu8BVm1 JjFyZ3+hAhfbA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220929225402.9696-4-Sergey.Semin@baikalelectronics.ru> References: <20220929225402.9696-1-Sergey.Semin@baikalelectronics.ru> <20220929225402.9696-4-Sergey.Semin@baikalelectronics.ru> Subject: Re: [PATCH RESEND v12 3/8] clk: baikal-t1: Add shared xGMAC ref/ptp clocks internal parent From: Stephen Boyd Cc: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Philipp Zabel , Krzysztof Kozlowski , Krzysztof Kozlowski , Thomas Bogendoerfer , linux-clk@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org To: Michael Turquette , Serge Semin Date: Fri, 30 Sep 2022 14:25:27 -0700 User-Agent: alot/0.10 Message-Id: <20220930212530.7BA97C433C1@smtp.kernel.org> X-Spam-Status: No, score=-7.2 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 Quoting Serge Semin (2022-09-29 15:53:57) > Baikal-T1 CCU reference manual says that both xGMAC reference and xGMAC > PTP clocks are generated by two different wrappers with the same constant > divider thus each producing a 156.25 MHz signal. But for some reason both > of these clock sources are gated by a single switch-flag in the CCU > registers space - CCU_SYS_XGMAC_BASE.BIT(0). In order to make the clocks > handled independently we need to define a shared parental gate so the base > clock signal would be switched off only if both of the child-clocks are > disabled. >=20 > Note the ID is intentionally set to -2 since we are going to add a one > more internal clock identifier in the next commit. >=20 > Fixes: 353afa3a8d2e ("clk: Add Baikal-T1 CCU Dividers driver") > Signed-off-by: Serge Semin >=20 > --- Applied to clk-next