Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp81655pxy; Sat, 31 Jul 2021 00:43:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiT4CCHRN9OyqK4l3APUYH/zQDc0e9+w3kWAcp82MwbMbOe2UwzVy0nSGoKeWIl3zTQ8Rz X-Received: by 2002:a05:6638:114:: with SMTP id x20mr5287227jao.118.1627717407060; Sat, 31 Jul 2021 00:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627717407; cv=none; d=google.com; s=arc-20160816; b=lMtanf6JWS6utgQq7JjzVASy3l12WFr0lH4JNrttaleWa8uce1J5kjp9rS70lZnXCz dtVwYg9zW1gQJwkvnsHmhhWTD6efijtWYMyoUFXO/4WtbewqobWTStysXEkMGDbmzmip ihItasneA1gfJcKZeoH24wxa9xV34znCt0LMcpwDdlmJs0x2Nl5NRSjSlMGt4akIXK+W kXqeTAzt7vaTnZ9MVjuYxduEAP5uDbyMwJSLaPRzl5Yhd6UV5QppUUDfb9SaJAhfJD4w X2SC98kZeUOgZaOPEY3516129EfmdZgjF+gK8jjWDN2v80Ws+bpI5ZSBMUevrmgIz9aa Hk2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=Hv1Kjt0wM3IMrL51Qq27kQRTwgyaY1whymskpzTrLBg=; b=NTHSUnT+ah/bLqhGB8EZT56i1xAo39LTxOeuIqVJ5gX2ome7SsooNmxEbBgtbcufWY I1tT2gsN2nMVX1ulGGh7Ku0WIg1lJUgruN5xjtjhYGsyBAQRdkbTlcI6odm8/pmV3peW vJ+DRGd3zJS8161TLdfpt2j3iv7U8W8BQuR3f9lePUWqOyGAk8CBVlKxl9EG5p0kKErE Gb5KgDgepey9DqhWBznKtm55g1s/I5wXCZn2m2+nCNjqklW4P92IV4RZRpp8r2H4CFhi dX28BdOiNPws/3yuMHmMZPzUMG/CSESP4u6ywl5L9ePnPvK6y1dk8lWj6e6BZwzzc2DI waxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Mfe/v8Uz"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w33si4736557jal.65.2021.07.31.00.43.14; Sat, 31 Jul 2021 00:43:27 -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=pass header.i=@kernel.org header.s=k20201202 header.b="Mfe/v8Uz"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbhGaHl3 (ORCPT + 99 others); Sat, 31 Jul 2021 03:41:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:36210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbhGaHl1 (ORCPT ); Sat, 31 Jul 2021 03:41:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3148A60EE6; Sat, 31 Jul 2021 07:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627717281; bh=Hv1Kjt0wM3IMrL51Qq27kQRTwgyaY1whymskpzTrLBg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Mfe/v8Uz7KZzXezwTwjXNOUR+12p4qzmq6509mWK4HR6HXGPAgYYHOsPNIDypMN4W dptRTFmjMlRcoslggxxB3pGQBj0x6UrIzpyRhgK0eHShF1H4ayZFJwSjbVOjohBESi S7z2KmeryQRXtF7eCeDb2EWvnztkdGkPMUlZcvNgWKzC+b7h/pDhgVb1avCQX29DcW jD3PhoYFAFhcJd+plY+0d1jbLOvWrCoQRpOp8y4dhHXeVVhAQXt6M5qmuAJacc37Fb htU5NUsNIGPVW4EzuZd3O1Ri4wdN/qcx17MjnStx1zor6X+sjRKLhzQ7jQZ84kkJOU +DAteW7woUfZA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210728204033.GF22278@shell.armlinux.org.uk> References: <20210625171434.3xusxpxjprcdqa47@pengutronix.de> <20210722060654.nudpdtemosi64nlb@pengutronix.de> <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> Subject: Re: About clk maintainership [Was: Re: [PULL] Add variants of devm_clk_get for prepared and enabled clocks enabled clocks] From: Stephen Boyd Cc: Michael Turquette , Claudiu.Beznea@microchip.com, alexandre.belloni@bootlin.com, linux-kernel@vger.kernel.org, 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-spi@vger.kernel.org, wsa@kernel.org, kernel@pengutronix.de, akpm@linux-foundation.org, torvalds@linux-foundation.org To: Russell King (Oracle) , Date: Sat, 31 Jul 2021 00:41:19 -0700 Message-ID: <162771727997.714452.2303764341103276867@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Russell King (Oracle) (2021-07-28 13:40:34) > > I adapted the Subject in the hope to catch Stephen's and Michael's > > attention. My impression is that this thread isn't on their radar yet, > > but the topic here seems important enough to get a matching Subject. The thread is on my radar but... >=20 > Have you thought about sending your pull request to the clk API > maintainer (iow, me) ? >=20 +1 This patch doesn't fall under CCF maintainer. $ ./scripts/get_maintainer.pl -f include/linux/clk.h Russell King (maintainer:CLK API) linux-clk@vger.kernel.org (open list:CLK API) linux-kernel@vger.kernel.org (open list) Finally, this sort of patch has been discussed for years and I didn't see any mention of those previous attempts in the patch series. Has something changed since that time? I think we've got a bunch of hand rolled devm things in the meantime but not much else.=20 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". That would probably work well for quite a few drivers that don't want to ever call clk_get() or clk_prepare_enable() and could tie into the assigned-clock-rates property in a way that let us keep the platform details out of the drivers. We could also go one step further and make a clk pm domain when this new property is present and then have the clk be enabled based on runtime PM of the device (and if runtime PM is disabled then just enable it at driver probe time).