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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 6F5FDC4338F for ; Sat, 31 Jul 2021 08:09:49 +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 27DAC60F94 for ; Sat, 31 Jul 2021 08:09:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 27DAC60F94 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=M+gPoC2fpsXQyWRTP6rPLo2BhBDNknHcW8a04JPgLTA=; b=4eGvkTw9q0SLAK 78JVvCNRaXMOqabtu+xT1YY12wuvOWh9suxuT6ou18yvYRWbAUQrTaSpzgwLkdHVE4JKY7nD/VitI tG//XN4g1HupGoSutfESezz/4LaOr10MYdewSLE89L1xj0dxEiEVUssZsAzFpGOejGSW/WMDZKTBY i2eDTW+kX50YN6O+0hl2MCkgoBT0SU0VEMmPP+2Nr6JhFvQUGFt3+LILCWyY1DhcknLTTaxvZLVck MHACg7qFlhY29ISmtVtDEuc814tX3zfyCUt7cUmdc28aismvyjGg1a7jB56JObQ9KtJk2J0iXsuGl jPyEbbFEbp3czpt2OYoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9k28-00BFZg-2v; Sat, 31 Jul 2021 08:07:48 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9k24-00BFZF-5T for linux-arm-kernel@lists.infradead.org; Sat, 31 Jul 2021 08:07:45 +0000 Received: by mail-pj1-x1032.google.com with SMTP id b6so18513416pji.4 for ; 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=rhFypc1cgAximMyryC9CijRVU9nBMmiXO3EsvPJnazWQo+a+G3t1aMxmrnQC2fExj4 nB1XlwsLcOmrpcHOrcQuJ7IOkJcUDnZ9Rh+F03NfacJ6F37FCYXn9Nis4QEbNylW5kjJ Jt9JdJ+kV5bEU+lfYcQxcSdpOQdP9GfPHJhckO67J2a49lF5kC2ZJfoQq+p5Q1s6J2gZ cZNqywnSCFVVgeybtO4ftG9zj0xlVCZtxwf2/HqPQP1iy43jpTeH+Azq6eefW42Dj6uQ s6JAJJ3ylN1b5vSGGm/3whtHFpV6LAa7MpiftBM5y8e5U0TmkKoX/F2llvu9XrYlcVg0 299g== X-Gm-Message-State: AOAM5308VSOVA27Q0GiZzyuMh1zDPFbrAjCI+FDMU/AFw/KP8oxIOUEj m8E/d0PV9IKkDfkw8c/sGCwaFXFzZZIl2oSY9/E= X-Google-Smtp-Source: ABdhPJyLYG6EfSxZbGTYMX3Nqur5AXec31dZTbExzR9cSxq9PzXJa1/vcRltYuuCpFlITVCEvyG9dHw47zXBhSlcFFc= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210731_010744_252549_A62AE76E X-CRM114-Status: GOOD ( 21.93 ) 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel