Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4192845rwb; Fri, 30 Sep 2022 14:29:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM525shPXM3kr8ynqedY8jB5TPyrLs0TaN8Q9I4OEN6BoQiK7XXI7D9PkkbiCDCaMjEqYBq8 X-Received: by 2002:a17:907:a407:b0:783:5465:902 with SMTP id sg7-20020a170907a40700b0078354650902mr7795067ejc.35.1664573396796; Fri, 30 Sep 2022 14:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664573396; cv=none; d=google.com; s=arc-20160816; b=AUiJDJdPj36pud8Wp64WZA3+bqTI/nF43y8aHfB4J0HgDo9Pb6080THnob4YsS2Jy8 XJLo26pvboG3EHA8/ZbNde8IEUPhSkddK/lVEnTyZTCCfx9Xh7TKeO37SvBoiDTvJl44 +P+JOSOIBVsZHpR2LBMS0JWVMQT+/nn/c2cB8Mz1JjMenTo25W70Vz+eFLWCGmuGAbfn YvRvgf4FFlSqhYBX9mHM9zIWAv5V9aFyPOzau/b/Y0degmmg6cZ0PXRqmO7SynBUG9Ms xJAFeIuzz2sMzYrh4ywCHJaw865nxwzjYdkfJ3mFJkB7uftjbXZyuWAmQE9to9VUg+WL HQ0g== 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=360V7rDj3wxMoS6JnM/+CnB3ZGWiP5LXFSIlVEXWBbw=; b=clDE/qtpo8z59h4mz11whUBf8jl7aTjs5+uIlXXskkj/Mxts0658+xJXfBnu3pfxI3 wTAPWSmVvXx/es0V9MgOsPIdm7Ccec5AJdOZdemVHhmhnFRAp7vvzteY0S4A5Nep5ka5 eYMcAPA8xWk1a3wpPYXiKTqJSYSTXQSoGX7F84nI2h0T/a6LDCDvRxQNh5V7bwrGdr8d TPqU5LFVX5/PMLaSLrKg/UZ3MR29dlOenunnqZwlMmTK+Gp7dIQG1e3qmonx7CQCakwf KSj5/8Y8DGOZR6n6GvMftw/9iceoFjIml6pkQ4HeMXj9SPTex3lYrdBS4kOYyqzujIiy nvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sl0sdVmK; 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 j19-20020a170906255300b0077b6ecac099si2395719ejb.287.2022.09.30.14.29.07; Fri, 30 Sep 2022 14:29:56 -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=sl0sdVmK; 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 S231817AbiI3V0s (ORCPT + 99 others); Fri, 30 Sep 2022 17:26:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbiI3V0n (ORCPT ); Fri, 30 Sep 2022 17:26:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6892F15AB58; Fri, 30 Sep 2022 14:26:39 -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 EE9E9B829E1; Fri, 30 Sep 2022 21:26:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4E16C433C1; Fri, 30 Sep 2022 21:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664573195; bh=360V7rDj3wxMoS6JnM/+CnB3ZGWiP5LXFSIlVEXWBbw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=sl0sdVmKdQjzAt7mFCJu4oBoGLQcRsZos17XmIJDxBZdvaSq6T5XW4CSJxQq4G1q+ P0mreebqNxJzllpXR9leKNNvi5MAjxArtNPIIOszp/8c97M66IyyirAAh/Pvu4QTWG nwl4K2eVaT0x+3US5ivSVY9tf5b79YRR0rn9rfx9tnKflfYut84/bucr/NXfEG/XgZ D3D3/LWoUle+DEAtrX/W37RNQKDjdaHbUHKR4+TN3le9aC7jO41HX2q63P948eI+2i NBjCtWBSOae37H38oa10seiH4NzVR93IUrVKEPvDXrYXgg1BL8P9TRs2iQ94L4f3ta WVNmVMdHV9IEQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220929225402.9696-5-Sergey.Semin@baikalelectronics.ru> References: <20220929225402.9696-1-Sergey.Semin@baikalelectronics.ru> <20220929225402.9696-5-Sergey.Semin@baikalelectronics.ru> Subject: Re: [PATCH RESEND v12 4/8] clk: baikal-t1: Add SATA internal ref clock buffer 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:26:32 -0700 User-Agent: alot/0.10 Message-Id: <20220930212635.A4E16C433C1@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:58) > It turns out the internal SATA reference clock signal will stay > unavailable for the SATA interface consumer until the buffer on it's way > is ungated. So aside with having the actual clock divider enabled we need > to ungate a buffer placed on the signal way to the SATA controller (most > likely some rudiment from the initial SoC release). Seeing the switch flag > is placed in the same register as the SATA-ref clock divider at a > non-standard ffset, let's implement it as a separate clock controller with > the set-rate propagation to the parental clock divider wrapper. As such > we'll be able to disable/enable and still change the original clock source > rate. >=20 > Fixes: 353afa3a8d2e ("clk: Add Baikal-T1 CCU Dividers driver") > Signed-off-by: Serge Semin >=20 > --- Applied to clk-next