Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp94529pxy; Sat, 31 Jul 2021 01:09:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0MpQ6qCkPO/3/yKU81USS7D8q2ZnKDyRraORbWnWV0opJ87xS2oc32L1ixOhbudDeTZJ1 X-Received: by 2002:a17:907:98c1:: with SMTP id kd1mr6528930ejc.51.1627718968560; Sat, 31 Jul 2021 01:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627718968; cv=none; d=google.com; s=arc-20160816; b=lGeO8ssL9xiP2xLQEERmm3FeSS3aHL1zGFD458nb+voGrBSY+WZs77gIwCPzvMAN2Y opWylRmYVInzlDoLJ1mgARNCv2vUMFIsOH/9vUB5KPjHR/4ph0upBtKLxibtptjgBjFI BUt+4fyeuz150ja7578nrHUjq0mDi4XO9AZiaX7EuhOAfXOCR64MjIFAFGf5QMmfxIav XTDf7+jwaIV/D5c5uJB9K9Rgy4cBAyajf4Rhf1jW+6DtpzgIgk1ArIAOv+vJAzF+KYM2 ZjHKQtnnb26wFIcp+F/nF0HTVazFjJ/lRoXnkc29aEqFnrkRxcFqJCP8n5XP+6akLtUc CJfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rzB0Wv52KsFnVdP16+9dKjfpIjO/e956EYCnp3uw5/E=; b=k+3JrIejVk0oR48EPLMejAsw2EwLFuIMIOt/+uq09EQSIWzj8sPCvjdga2Tt0tSWIF ixx45N2+0WRj50Frw8byWFy9bnIQwVJK5TeKUasZTzDH0fOM/j9WwYNS/owzkZQx92B4 CGIu4Aqw7x1ivuK0FrWjG/fZv4L2JM3wj99HJ7dIR/jTc/yx5OSU9dq6/rwZNVGXqpnC e6T3KW8ri9nOCeYPW+OigQJSACTFAKaFFsak6/BDlWhzpiD4bLLdfWf28hZ+xU5G8FHn Dd/b53lTB2WmOpxqr0qZ/gUJIU2C6S7YoDpOBZiTHfuARkHUAbKtdPPqtZbfHhLvpsdX A55g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=COQp+wz4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si4873050ejj.523.2021.07.31.01.09.04; Sat, 31 Jul 2021 01:09:28 -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=@gmail.com header.s=20161025 header.b=COQp+wz4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232291AbhGaIHv (ORCPT + 99 others); Sat, 31 Jul 2021 04:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbhGaIHu (ORCPT ); Sat, 31 Jul 2021 04:07:50 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E66B8C06175F; Sat, 31 Jul 2021 01:07:43 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id m10-20020a17090a34cab0290176b52c60ddso17678477pjf.4; Sat, 31 Jul 2021 01:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rzB0Wv52KsFnVdP16+9dKjfpIjO/e956EYCnp3uw5/E=; b=COQp+wz4kVmTID7nr3HHUh9p/J2NOMrFfmoEnJGf7DdzS2ggaNvUdYp/yXlBna2+Tg +BDjYGgNBq7XVS65YFjKVSGV32q+O4gFrMeQXhpPWDe/0+Ac/93WNmMOdmpiOfaqEUN2 5onz4ijj/6RAzknkzI5lD3VOvssIQ1jbgSLTa1Y/sCDEMFcXICQ+Sr1ZIGyHa8KjBPfo P80vyZmOTNr73Ft6QiYiwMMwbrULOVokx56VHzxGd8d1PE48ERk12p+ZgJysqzj1ySDw 0pRzejEfv8dUUm0EvpUnFxMRaPAmYCoWlYutrq7NMhF+QhfePKe5i6SGigW88m+VFCm9 4tjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rzB0Wv52KsFnVdP16+9dKjfpIjO/e956EYCnp3uw5/E=; b=ZRUGUcVok+V3k1K3T2LfqfZprPVkNsmhNzAp0HY4u6FrKRC1Vh49FdYhXD6/GMIshE MUcpn9MmfyLB6OTHXWqvrfVZvsI1SeG3MK0yfPCI1w4x0eBQ1TUxoful8u7G1w0G5fN4 GItb/B9VhRSViVopGmg6xr7325CHuwREWxbq8mZnW6wT2z8AygCHjFt2sXwi+JZyuq6D xG/tunZy6mJJweJIVg3KNtpDLFadr4wSB7Zf0ze4d9ITzCSaFrLsQbk1JxRe2Rcy2b0v Lt/J+4actn0UWcKEnY0sPtpgUeiETGa3jZ5XxcM4iqjwziy3wuWihV8vvRwcBgtiir0D TSHA== X-Gm-Message-State: AOAM531eAKM2bwv8gntFQeB0ZEo/6Y6tYYBh/yWQ6S/bbVTYNkfoOsVl d5Lj3/TvLASyS86W56wzy3cqr8KLOmjAYwjCe6s= X-Received: by 2002:a17:903:2444:b029:12c:8eba:fd6a with SMTP id l4-20020a1709032444b029012c8ebafd6amr5994645pls.0.1627718863409; Sat, 31 Jul 2021 01:07:43 -0700 (PDT) MIME-Version: 1.0 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> <162771727997.714452.2303764341103276867@swboyd.mtv.corp.google.com> In-Reply-To: <162771727997.714452.2303764341103276867@swboyd.mtv.corp.google.com> From: Andy Shevchenko Date: Sat, 31 Jul 2021 11:07:07 +0300 Message-ID: Subject: Re: About clk maintainership [Was: Re: [PULL] Add variants of devm_clk_get for prepared and enabled clocks enabled clocks] To: Stephen Boyd Cc: Russell King , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Michael Turquette , Claudiu Beznea , Alexandre Belloni , Linux Kernel Mailing List , Thierry Reding , Lee Jones , linux-clk , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , Ludovic Desroches , Oleksij Rempel , Alexandru Ardelean , linux-pwm@vger.kernel.org, Arnd Bergmann , Mark Brown , Jonathan Cameron , linux-arm Mailing List , Alessandro Zummo , linux-spi , Wolfram Sang , Sascha Hauer , Andrew Morton , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 31, 2021 at 10:41 AM Stephen Boyd wrote: > 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. > 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". DT is not the only way the clocks are established in the kernel. > 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). This sounds like a good idea from a usage perspective. -- With Best Regards, Andy Shevchenko