Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1519456rwi; Thu, 13 Oct 2022 15:10:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49RZp+MTWjsj1TUoGbhbYEnF5We2nQ53Bk3Zlq/ZWo2j3eRKREmhzy1FXi3qqvUPRCLEVc X-Received: by 2002:a17:903:2686:b0:17e:f177:3ec with SMTP id jf6-20020a170903268600b0017ef17703ecmr2041866plb.71.1665699009854; Thu, 13 Oct 2022 15:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665699009; cv=none; d=google.com; s=arc-20160816; b=ytGUQf9sJduWtXjTcu+BwtWarFq5S+WrFbW2pZskKfdrMrjIEmlx2KPN0K1rwPoCN+ Mnj9nbAZYbpfJDpfaJulvjCEXRzCs9zdI/1Hhsioe30iP6vCwPnG8Or3oDKh6ddCvj15 clMYE1ea2DslZMUPRufC6dWHNbKn1Q3B/WeBgrW41jDWjqOU6aKGIWgYMiUh0SIWwywA MWkHTiLOc58NoULDod2vo/AxYixOdTG8DQkZdAWZbx/nEdnSlTw5KYQITolayX1uNRu7 2C2OsPllt8Y4Xo0pSQ/2w0wsCufU4Qq3sWf+8UpfKTh903z7MSDxdTipQPojZtluQLvI 0SCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xN6AVYW/idr9nBOL/NTXcBMNiy0CKnkM7vciDH1lpMc=; b=m9ZCV7qIgtjaMc7iRF6YqkJhyBPja6CV7O27P8bWo6b+2B+st4IeNAHfV+QPbCn2NI 9TzeYwf00wQP59AKL8evvqjsjC+i7sAAdTJCvtjFOGdpXwl+SjoRjaoy0RTNoCldnpmn Wh/jEz7tIMqEz2ghiCYTr3kErp2eseqM8pHPiaq6GZX5VFPkNnzQHaPIvRzEtGsAoOMH DAJX8yCfB6C+yFGc8xIG3eT1qr7EqEibyE+WrpLA5Grs7rHoZC3I34RqzD1fhAvdYzgJ MajjHttvpof+VbaWSVMmsfzi0fZJYyktKWI7pBUGbszMslgUkZdAsfgbRCrAogeTciEX Nlgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UIrhWRI+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pw18-20020a17090b279200b002009ed52bf6si810867pjb.19.2022.10.13.15.09.57; Thu, 13 Oct 2022 15:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UIrhWRI+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbiJMVcY (ORCPT + 99 others); Thu, 13 Oct 2022 17:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbiJMVcW (ORCPT ); Thu, 13 Oct 2022 17:32:22 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06C5B170DD6; Thu, 13 Oct 2022 14:32:18 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id A0370FF803; Thu, 13 Oct 2022 21:32:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1665696735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xN6AVYW/idr9nBOL/NTXcBMNiy0CKnkM7vciDH1lpMc=; b=UIrhWRI+256NEuuFmRgvcUiXYaWgWe0Yz7tADl7GjI+51IMI1hy8K0LnEQj1xAcRc6Rocc aOjSrC+e5VZKMVXPWTHSYL6aFDxDLu172cCorDp1APajaZUsir9m5AY/qLfaxyRF9OHTam uGCXa5qZmll3LcZpy6RoWJd1iM8jU1AoIzL6NfqGEAmP4XRbX9Dg8lhTN+JPhC3UnusJQ5 UK/SAyjitqMkrJeHW0jVQHRL4nUwtnaJshZ9bH5HRaHAH7ivfaqgkTMa1dnxxUuZVX5Rox 1PtyLGcnO0pNlVbU3m3n5IpxPe9cIGn5ndMX+ZknrB7WbxOf7iV0JBA0hC7Xtw== Date: Thu, 13 Oct 2022 23:32:15 +0200 From: Alexandre Belloni To: Alessandro Zummo , Christophe JAILLET Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH] rtc: k3: Use devm_clk_get_enabled() helper Message-ID: <166569636075.1226796.778776810864172271.b4-ty@bootlin.com> References: <601288834ab71c0fddde7eedd8cdb8001254ed7e.1661329498.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <601288834ab71c0fddde7eedd8cdb8001254ed7e.1661329498.git.christophe.jaillet@wanadoo.fr> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Aug 2022 10:25:11 +0200, Christophe JAILLET wrote: > The devm_clk_get_enabled() helper: > - calls devm_clk_get() > - calls clk_prepare_enable() and registers what is needed in order to > call clk_disable_unprepare() when needed, as a managed resource. > > This simplifies the code, the error handling paths and avoid the need of > a dedicated function used with devm_add_action_or_reset(). > > [...] Applied, thanks! [1/1] rtc: k3: Use devm_clk_get_enabled() helper commit: 8f08553e7e4370cdb8f55f0e3dc4db91ed6a4931 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com