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 X-Spam-Level: X-Spam-Status: No, score=-4.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CCABC4338F for ; Mon, 2 Aug 2021 15:29:52 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6680D604D7 for ; Mon, 2 Aug 2021 15:29:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6680D604D7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/bV7LkwKqTmzcsgQds7Jm07GxJIY0wFN5dqoSx/Qmgc=; b=BSndh0JS9By2H+6Y9B9luiHAcY t3uJf2z2cRnC9pZdWymeo4047XTrG7lkfEgZJ4209Sll11/40tinz3cLzxfz7YeaNaer5ppJYDhEa 3WC8HYK+KtnbZG8/Z9DRz2c1shRaPmX3BympeXhYLDJskYsOR7p3WkHX1679WdgauaRui4MeTIK0q OCb+NzonQpvLF7vY9acmgprKpsW2gbR/aVo5nJPNLR7khs0Xg/RA9zfIq61Q1jYxcIwqunFLTj+Tq RWMzmY4+bKebFQPwoqG7dHoY3xTDrs6hEq+fWOjVg3Kn29P83TZhVbaTbWHY+RErLO/1cyo0AfTJa buOVvonQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAZrN-00Gwqd-5J; Mon, 02 Aug 2021 15:28:09 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAZrJ-00GwoX-Nb for linux-arm-kernel@lists.infradead.org; Mon, 02 Aug 2021 15:28:07 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAZrC-00076g-Hh; Mon, 02 Aug 2021 17:27:58 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mAZrA-0004Qi-3t; Mon, 02 Aug 2021 17:27:56 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mAZrA-0008Ni-1g; Mon, 02 Aug 2021 17:27:56 +0200 Date: Mon, 2 Aug 2021 17:27:55 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: "Russell King (Oracle)" Cc: alexandre.belloni@bootlin.com, Michael Turquette , thierry.reding@gmail.com, lee.jones@linaro.org, linux-clk@vger.kernel.org, linux-rtc@vger.kernel.org, Ludovic.Desroches@microchip.com, o.rempel@pengutronix.de, andy.shevchenko@gmail.com, aardelean@deviqon.com, linux-pwm@vger.kernel.org, Arnd Bergmann , broonie@kernel.org, Jonathan.Cameron@huawei.com, linux-arm-kernel@lists.infradead.org, a.zummo@towertech.it, Stephen Boyd , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, wsa@kernel.org, kernel@pengutronix.de, akpm@linux-foundation.org, torvalds@linux-foundation.org, Claudiu.Beznea@microchip.com Subject: Re: About clk maintainership [Was: Re: [PULL] Add variants of devm_clk_get for prepared and enabled clocks enabled clocks] Message-ID: <20210802152755.ibisunvibmwhiyry@pengutronix.de> References: <20210722081817.2tsjzof4gvldq6ka@pengutronix.de> <20210723091331.wl33wtcvvnejuhau@pengutronix.de> <06e799be-b7c0-5b93-8586-678a449d2239@microchip.com> <20210728202547.7uvfwflpruku7yps@pengutronix.de> <20210728204033.GF22278@shell.armlinux.org.uk> <162771727997.714452.2303764341103276867@swboyd.mtv.corp.google.com> <20210731120004.i3affxw7upl5y4c5@pengutronix.de> <20210802094810.GJ22278@shell.armlinux.org.uk> MIME-Version: 1.0 In-Reply-To: <20210802094810.GJ22278@shell.armlinux.org.uk> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210802_082805_802429_96D16ADD X-CRM114-Status: GOOD ( 27.60 ) 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: , Content-Type: multipart/mixed; boundary="===============7665455099409115491==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7665455099409115491== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4yhd4k7pc6ksrfur" Content-Disposition: inline --4yhd4k7pc6ksrfur Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Russell, On Mon, Aug 02, 2021 at 10:48:10AM +0100, Russell King (Oracle) wrote: > On Sat, Jul 31, 2021 at 02:00:04PM +0200, Uwe Kleine-K=F6nig wrote: > > Hi Russell, hi Stephen, > >=20 > > On Sat, Jul 31, 2021 at 12:41:19AM -0700, Stephen Boyd wrote: > > > +1 This patch doesn't fall under CCF maintainer. > >=20 > > Given that CCF is the only implementer of devm_clk_get at least an Ack > > from your side would still be good I guess? >=20 > I think devm_clk_get() should not be part of CCF but should be > part of the interface level - it's silly to have devm_clk_get() > being CCF but not clk_get(). The same should go for the other > devm wrappers around the plain clk_* interfaces. What is the practical difference between "Function X is part of CCF" and "Function X is part of the clk interface and there is only CCF who implements it"? > > I found a patch set adding devm variants of clk_enable (e.g. > > https://lore.kernel.org/patchwork/patch/755667/) but this approach is > > different as it also contains clk_get which IMHO makes more sense=20 > > The discussion considered wrapping get+enable at one point, but I didn't > > find a followup. >=20 > There have been several different approaches to wrapping things up, > but here's a question: should we make it easier to do the lazy thing > (get+enable) or should we make it easier to be power efficient? > Shouldn't we be encouraging people to write power efficient drivers? Yeah, sounds compelling, but I wonder if that's of practical importance. How many driver authors do you expect to lure into making a better driver just because devm_clk_get_prepared() doesn't exist? In contrast: How many drivers become simpler with devm_clk_get_prepared() and so it becomes easier to maintain them and easier to spot bugs? In the absence of devm_clk_get_prepared(), is it better that several frameworks (or drivers) open code it? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --4yhd4k7pc6ksrfur Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmEIDvMACgkQwfwUeK3K 7Alp/gf/YuHVn2QCiQY9Ln+XZfkad7QXQJYE0+fG2AJ7dxEy13P7sSRuADCYTAGu sE2xOSevHd7QQeJjY2UcjHahHyGJwJXMBKLouDyrPEhocQpBd3mp9ewBe1BL/jRH 4Euz/1SRM2NSfTc9lw7QzxHD6tGOY6Lo6Qj34pE7gKel4UX9FrYOqCoq2YbViMoX nVueeVsmqp5pt+mB4tfNDWOA+H7dkH+LoGc0yggaVQW/K+rZqdr/qBYsFq7k4Zjv Csk4EcDMhWkDlTekyjRutr3F6uGoCFWvuu52IQqxkVfRVy35Zx0tBpzGtILDTVRB Ww69Vm7tkWdIyLcrczBXbDvc7FMunQ== =PmG8 -----END PGP SIGNATURE----- --4yhd4k7pc6ksrfur-- --===============7665455099409115491== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============7665455099409115491==--