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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 983B0C4321E for ; Wed, 9 Nov 2022 08:53:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230148AbiKIIxM (ORCPT ); Wed, 9 Nov 2022 03:53:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbiKIIww (ORCPT ); Wed, 9 Nov 2022 03:52:52 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F01021DA47; Wed, 9 Nov 2022 00:52:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 0562180FB; Wed, 9 Nov 2022 08:43:03 +0000 (UTC) Date: Wed, 9 Nov 2022 10:52:48 +0200 From: Tony Lindgren To: Dario Binacchi Cc: linux-kernel@vger.kernel.org, michael@amarulasolutions.com, Amarula patchwork , Allison Randal , Greg Kroah-Hartman , Liang He , Michael Turquette , Stephen Boyd , Tero Kristo , Thomas Gleixner , linux-clk@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH v3 1/2] clk: ti: add of_ti_clk_register() helper Message-ID: References: <20221106154612.3474940-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dario Binacchi [221109 08:28]: > Hi Tony, > > On Wed, Nov 9, 2022 at 9:17 AM Tony Lindgren wrote: > > > > * Tony Lindgren [221109 08:06]: > > > * Dario Binacchi [221106 17:36]: > > > > The ti_clk_register() function is always called with the parameter of > > > > type struct device set to NULL, since the functions from which it is > > > > called always have a parameter of type struct device_node. Adding this > > > > helper will allow you to register a TI clock to the common clock > > > > framework by taking advantage of the facilities provided by the > > > > struct device_node type. > > > > > > Makes sense to me. > > > > > > Do you have a patch to make use of this I can test with? > > > > I mean a patch to convert the ti_clk_register() callers to use this or > > what's your plan? > > The first patch that calls this function is the second one in this > series "clk: ti: dra7-atl: don't allocate` parent_names' variable ". > Since I don't have the dra7 hardware, I have indirectly tested it on a > beaglebone (gate clock driver) board. To do this I also > had to add the of_ti_clk_register_omap_hw() helper. In the case of the > dra7-atl driver it was not necessary because the setup > function calls the ti_clk_register() directly. > If you think it makes sense, I can do 1 or more patches that replace > ti_clk_register() and ti_clk_register_omap_hw() with their > counterparts of_ti_clk_register[_omap_hw]. And I could test this > further series on the beaglebone board. Yeah if you can please post one more patch separately replacing the old users that would be great. Regards, Tony