From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 71521FA3722 for ; Fri, 13 Sep 2024 07:29:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Subject:References:In-Reply-To:Message-Id:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gkjYi8FXCiBhaSisYFv8UtmUsJkYhgRGdyGnqOCGvdY=; b=RqihU7k24dPcIA5U5Jd3dJilNn jBZMfWDQBYSKFGXzNMyGVYyJ/Nqa5uX3dUTTuT1W0LeH8pGueQbIn6SNxc059afIa3vpZft3PIfGr He1wytnkqctBKt+U9wkTPG5MHqw9KjSIYGl//72Bl7MbONBhtVE79iA38HovJ7kbBtvEirRVV72j7 OcwAjJAVSZwXscsprWMo3mxmIRjdnuOTH/zeYhRbi/DHxOaNlvrJGDi5Wl+id8+7r2wBihCn3Dbb0 wkNjaHCdI50VrJV4e4ZqiVAznn4tOvb/aTN6sD487TrI0Qozq6lfAMweKIBSqcRyCH5bbRB2wlLLE OX30QekA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp0kL-0000000F9tl-0pJr; Fri, 13 Sep 2024 07:29:37 +0000 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp0jH-0000000F9op-0Vcx for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2024 07:28:32 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id DC9F5138060B; Fri, 13 Sep 2024 03:28:29 -0400 (EDT) Received: from phl-imap-11 ([10.202.2.101]) by phl-compute-10.internal (MEProxy); Fri, 13 Sep 2024 03:28:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1726212509; x=1726298909; bh=gkjYi8FXCiBhaSisYFv8UtmUsJkYhgRGdyGnqOCGvdY=; b= CTPu/GycIFzbmXtnzJrVKNNZrxCACzXb7WNGY6FaduAxirUQiOVKpjHifBDWOIvC W+I9RWJtdaAhsvh6PwgrMTOLJQDjF++fMoo3c5LWWmB8Y9L3M3IwAv4Cjn6iQPV9 Xt7V22MXuZYEG+fTQBMlMZvHrzifm4q5BbeNziTBDCi2afF55HsdFTk9SxMbFxmo nW+0F9qB7pBh0sJ3JHcHvWxvFibk4WWwYHVMJezurTVJl2/f/uP1E1a5+0H4cqgR +ghv6s8sJXkGAFV6NZkmchJQXW+S5526ol7BHpptCWXTwmNhNomv5w9YOQgSu8yU Czsx4LLlbigqOcXK8mV8NA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1726212509; x= 1726298909; bh=gkjYi8FXCiBhaSisYFv8UtmUsJkYhgRGdyGnqOCGvdY=; b=E YjrH28Rkic103YY8rhbL3GA7pd5qfKMeJbXUXuPUIYKcoz08z3TQUmwuY8Vh6mT7 KznkKOlerDEPRI2PEb8H8yGgq9vCmyC2QhbiqVU9bP2Xc8FKctff71yalaOhxgrO 9m8MicZnWT92oM9Ryo1yUzRJm94hbKzey7fV0X6gekYzqgwFoZr4aiyXNwxEVkio 0kim03o0BgKKiqP9lrWEunfANjozFMUO3420Iy/fduzOWH/dVpwRFqBBWeejS1gC xLZNMoqSWixx2bseYpxOzfg6LE6OD4noYGXwnlH8133hbNCNDel8cmLSud1YGnqb YLP5/GoDVFScwznCNC+aw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudejiedggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddt necuhfhrohhmpedftehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrd guvgeqnecuggftrfgrthhtvghrnhephfdthfdvtdefhedukeetgefggffhjeeggeetfefg gfevudegudevledvkefhvdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvgdpnhgspghrtghpthhtohepvdek pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehuthhsrghvrdgrghgrrhifrghlse grnhgrlhhoghdrtghomhdprhgtphhtthhopegrughsphdqlhhinhhugiesrghnrghlohhg rdgtohhmpdhrtghpthhtoheprghrthhurhhsrdgrrhhtrghmohhnohhvshesrghnrghloh hgrdgtohhmpdhrtghpthhtoheptggrthgrlhhinhdrmhgrrhhinhgrshesrghrmhdrtgho mhdprhgtphhtthhopehmthhurhhquhgvthhtvgessggrhihlihgsrhgvrdgtohhmpdhrtg hpthhtohepsghrghhlsegsghguvghvrdhplhdprhgtphhtthhopegrnhguihdrshhhhiht iheskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheptghonhhorhdoughtsehkvghrnhgvlh drohhrghdprhgtphhtthhopehjihhrihhslhgrsgihsehkvghrnhgvlhdrohhrgh X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 478BD222006F; Fri, 13 Sep 2024 03:28:29 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Fri, 13 Sep 2024 07:27:59 +0000 From: "Arnd Bergmann" To: arturs.artamonovs@analog.com, "Catalin Marinas" , "Will Deacon" , "Greg Malysa" , "Philipp Zabel" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Utsav Agarwal" , "Michael Turquette" , "Stephen Boyd" , "Linus Walleij" , "Bartosz Golaszewski" , "Thomas Gleixner" , "Andi Shyti" , "Greg Kroah-Hartman" , "Jiri Slaby" , "Olof Johansson" , soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, "open list:GPIO SUBSYSTEM" , linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, adsp-linux@analog.com, "Nathan Barrett-Morrison" Message-Id: <4d883126-8675-4fb3-adff-f965c0de2ba3@app.fastmail.com> In-Reply-To: <20240912-test-v1-5-458fa57c8ccf@analog.com> References: <20240912-test-v1-0-458fa57c8ccf@analog.com> <20240912-test-v1-5-458fa57c8ccf@analog.com> Subject: Re: [PATCH 05/21] clock:Add driver for ADI ADSP-SC5xx PLL Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240913_002831_436470_942228E0 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 12, 2024, at 18:24, Arturs Artamonovs via B4 Relay wrote: > From: Arturs Artamonovs > > Implements clock tree, no dynamic pll rate change. This could use a little more detail. > drivers/clk/adi/clk-adi-pll.c | 151 ++++++++++++++++++++++++++++++++++++++++++ > drivers/clk/adi/clk.h | 99 +++++++++++++++++++++++++++ > 2 files changed, 250 insertions(+) The header is only used in one file, to it's better to move all the contents into the driver itself. > +struct clk_sc5xx_cgu_pll *to_clk_sc5xx_cgu_pll(struct clk_hw *hw); > + > +struct clk *sc5xx_cgu_pll(const char *name, const char *parent_name, > + void __iomem *base, u8 shift, u8 width, u32 m_offset, spinlock_t > *lock); Do these need to be global symbols? It's generally better to make all functions 'static' unless they need to be called from another file. Arnd