Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1495918rwi; Thu, 13 Oct 2022 14:45:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5szkBKXVTFWXamEggbP9XL4Q1RK4/WWPMmt1yPfVYyJBRsLM1Fx4fepAzMUKlWY0Prp4I9 X-Received: by 2002:a17:907:84a:b0:733:735:2b1a with SMTP id ww10-20020a170907084a00b0073307352b1amr1332499ejb.290.1665697538646; Thu, 13 Oct 2022 14:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665697538; cv=none; d=google.com; s=arc-20160816; b=ZE0rEEU1XbNq8gNHNOQNn6rr9sDFG/OKRub+Mnw4xaqeDOIKrBXFnbtrXcBRZ9BTMF QaE1GoprEOEMy4rjzvLupU5ZPVX3ycsbA7GiMRUkIdeTQdtcziI2xreey27wptFKYtV5 g+5SYZ0U6Uq6IdyByx+ZGkWOpBToEcPmr43PIV6xWAuwuNSWjEiX2TMWyiOMFyA2PQ3X +gmZp3oo+h4sJv2r1Jw6MbZYLFWQ+Jd7HVYtYmMNPb7VZcR83byy3u+MnVLMlUx1Aa0o 5Hz3F1gEHnvla0r9HunBokQNmi/6OP7KSbWHSzfPyhDD85e8UzikRfNW1iNjHQxXNX6+ zvaw== 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=/AFwraTNltNY+tI0PBTXwQEkN7fKXUqp2PHeW12J1CU=; b=OrW2Z6VDtpkPtfD3LcdAvRckGI9NLBrAKsSe0xZ5PNs2QPe+gaoTEfiSqQpuYE3HFK ylcQctGKtPm3gpnMl7hoa43SmLfMQ2LDoajAv+ee7Ebqe+p47fneYSV3V9AtO4irH8i9 BRtPtThIUnNbBkV9KSRamtSV90/4VHdNqmCQ+ROguE5euGC4/pCMXLfebxxAhOOAW20e V758ebu3Oo7FA1jYJAm9/pjWkBzH/ciPmcZ6wmu4HxOX21XpyDq5OdX8e0gnVKD2Gg62 udY1Uh0NWYnTOZJ+BVGOVTFPAmt9CiBZzDrD7xiVV79b+gtnPdE0iciSvBhowo9uaIMV cAzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mWXvztsi; 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 ne41-20020a1709077ba900b00780328a0868si776559ejc.110.2022.10.13.14.45.13; Thu, 13 Oct 2022 14:45:38 -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=mWXvztsi; 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 S229986AbiJMVcy (ORCPT + 99 others); Thu, 13 Oct 2022 17:32:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33126 "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:52 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0D66157465; Thu, 13 Oct 2022 14:32:50 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id AE64E240004; Thu, 13 Oct 2022 21:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1665696769; 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=/AFwraTNltNY+tI0PBTXwQEkN7fKXUqp2PHeW12J1CU=; b=mWXvztsizl1t1XyJvd9wFN4g8i+yrVCSumTwKEZ6wsyBNFkneyJiRh7zfc2Jd7OhWjByY+ 3/Azvd0wqEIs2oAB0Ee6MuJS7rHfY/ZalwVQSuRrj5cp3KKeia8K4J1ELCKEcAgAE2+FLb PcFFMdV0TOCtakoRGTgC70+EptFz/wgK1735qBbXwOzemESuWO6G71Pm3zqdr3R2fnVi8E Tod9s9Vjejz9hvGtk30Im9N9TZ87K/u4wBMRI1HkdcSH+dtZseBl47izGDyQYvFxEFnAMC BeyMl8oKDDb0gsKvcQa1UJ7kaeAAKhtKEWJEPVjcug6NRUKbdN+r0FFUbEI+Ew== Date: Thu, 13 Oct 2022 23:32:48 +0200 From: Alexandre Belloni To: Alessandro Zummo , Christophe JAILLET , Daire McNamara , Conor Dooley Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-riscv@lists.infradead.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH] rtc: mpfs: Use devm_clk_get_enabled() helper Message-ID: <166569636075.1226796.3261311337977278707.b4-ty@bootlin.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,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:18:25 +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: mpfs: Use devm_clk_get_enabled() helper commit: 24fb316155a5f6ba278a8b110c60e67b79900356 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com