Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1484029pxy; Mon, 2 Aug 2021 02:49:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyc5GJAPjYsrtSmwH1CnnKxSGis2mn4xqi0wc3QZm+gdQxxkYfH9p5MkYbQpgIi+y2fnxm X-Received: by 2002:a92:1a12:: with SMTP id a18mr1619564ila.289.1627897769935; Mon, 02 Aug 2021 02:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627897769; cv=none; d=google.com; s=arc-20160816; b=1LaFiGmaT3LicES0d4c/bW/G+8hsa/odlj67mRUJLWkFYD+znwH+75ST3Ur+j+VAlp R0wnUCBxOiDqUg6UVCDswHE5Sxw6Zkb7nUiRZrE8pSjoSQNXGv7SqFoeUuMqWHAjuHPD AQ1CYfxNmpZ2htO3ne3BGJNVFvLWXwtHqgPQVBK9/d1W1rK36/dtyiR37r/7qRoL4e+4 W5AI1ndtBWOd3K8reMuJPnpcKXVaVGL33bBJDlZiBl5q6sam5y/5V6vSFV+c9rQBjDJR RvXwyX0LA1uS5/S+gSmtvBAIj74w6JlHzu+aikdPDyktUIVDiFLdddwpT63fhthwi6bt 1dpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EuWMmKq4SfpJmtGNCymVReAeRTht0Bdg7VG7/exrrCw=; b=jfu4VbZ8gshJlQ3FTmYkkcKLDw14WpqEzRaAAafc837LzSEumfG4yoUe733V9wJld9 WeHNLOSRvbUEfiscZX2XZhWj01wEDiq9g05zgW5tC7ZNcSUXsvm9rNqYkYrRh+it063y k9qGHh0J7i7p3LgCPB24LM10csC9J9YHyX5W29vLgXZ7jVTTJoMpHa17jipaGnyQHkE8 rQEol8tRQj68dnUPFNscK0CENBiCDuvg494jjLHi/SXQ1xcP8CDIG8zezK4iOR8pvTyn CLt5FCtBsnJI44ZdBTNbd3I/lfGh2yONS4YqohNEG7pkLmz5PuvjvldBOK0MoIuDG9Pu 0qBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=yb4BJMek; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si12155317ila.26.2021.08.02.02.49.18; Mon, 02 Aug 2021 02:49:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=yb4BJMek; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233128AbhHBJse (ORCPT + 99 others); Mon, 2 Aug 2021 05:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233093AbhHBJsd (ORCPT ); Mon, 2 Aug 2021 05:48:33 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14297C06175F; Mon, 2 Aug 2021 02:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EuWMmKq4SfpJmtGNCymVReAeRTht0Bdg7VG7/exrrCw=; b=yb4BJMeklOXEuLu6GHSoDZ382 JZ+rWCauEZ4nW4CeuE0cZ46WaGcFVsah2s21cKq7LWBnQZbSilf6ZLgm1RuMW2+efdfa4R5oUyS33 iccBCQjCQgM5WxFlRxXKmtigRhrVf2fIbr/kjSdntCaSPK/D8zcePV7r7YaMBQt0yQNKJ6QA0VJ0X Iu3fG+7/u13Ps85rSxkMA/tDV/Cveq7ySLmUP6NX+6Rnu050OCnX8eWOpKaYVTfp0CmjhSVslUEO1 hPiAYviPJylj4ooTBA+mh8PgdUoSzVaICpIkOD3ZT0V1Q0Ui3+X/nCQ48Ry9XpBAs21GVdYNS0ler mUH6f8Bdg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:46850) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAUYS-0005LR-30; Mon, 02 Aug 2021 10:48:16 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1mAUYM-0002nN-Mu; Mon, 02 Aug 2021 10:48:10 +0100 Date: Mon, 2 Aug 2021 10:48:10 +0100 From: "Russell King (Oracle)" To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Stephen Boyd , 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, 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: <20210802094810.GJ22278@shell.armlinux.org.uk> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210731120004.i3affxw7upl5y4c5@pengutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 31, 2021 at 02:00:04PM +0200, Uwe Kleine-K?nig wrote: > Hi Russell, hi Stephen, > > On Sat, Jul 31, 2021 at 12:41:19AM -0700, Stephen Boyd wrote: > > +1 This patch doesn't fall under CCF maintainer. > > Given that CCF is the only implementer of devm_clk_get at least an Ack > from your side would still be good I guess? 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. > 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 > The discussion considered wrapping get+enable at one point, but I didn't > find a followup. 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? > > I still wonder if it would be better if we had some sort of DT binding > > that said "turn this clk on when the driver probes this device and keep > > it on until the driver is unbound". > > This doesn't sound like a hardware property and so I don't think this > belongs into DT and I would be surprised if the dt maintainers would be > willing to accept an idea with this semantic. I really don't like that idea - enabling or disabling a clock is an implementation decision, one which can change over time. Even if a clock is required to be on for e.g. accessing device registers, we may decide that, if we want maximum power savings, to disable that clock when the device is not being used, but an initial driver implementation may not do that. If we encourage people to throw a property in DT, then the driver's runtime behaviour becomes a combination of the DT being used and the driver implementation. Let's keep that to a minimum. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!