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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C44C4C54EBE for ; Tue, 3 Jan 2023 11:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237442AbjACLip (ORCPT ); Tue, 3 Jan 2023 06:38:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237428AbjACLiL (ORCPT ); Tue, 3 Jan 2023 06:38:11 -0500 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A387EDF11; Tue, 3 Jan 2023 03:38:06 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 08B945C054E; Tue, 3 Jan 2023 06:38:04 -0500 (EST) Received: from imap47 ([10.202.2.97]) by compute5.internal (MEProxy); Tue, 03 Jan 2023 06:38:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1672745884; x=1672832284; bh=p2 IVLcKLfYVfXq3tOPJfy9fqA+CIFIvOUBhc8QFZ2+A=; b=MUklIHs7gzCKpEOO5r 1bvq39xyx/Ea65nv5IjDv1iCvNH/6Z8WEFI2t2t6X71A3lW8Uf84p0yO9jIuK5Ju 6HIfSgSkuuNiyNQYQywdagyZAtcYuOK4UQLhxlOgmSBosH94XXl1puDwlNPGa9nx aG73MPQAMtCb7CEO22tiYdOqbXZazX48aW9iL8EBoEntbXjo4WQdBwZvEzz7w4u+ nkpCMDaS2+bLkZbYVl7BbOnGVpbAcIS+KFdQCYOT2iAuKSHbanLQ6aZGsZdQgw5P uRRmSmubqqCdVIv7McKCKSeuLo+KxqFEVzCEh9Z6NbF+zO0cgyXFPryORAD/+W8e drGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1672745884; x=1672832284; bh=p2IVLcKLfYVfXq3tOPJfy9fqA+CI FIvOUBhc8QFZ2+A=; b=RRR4lGdjU5qgZWpvlv7gWOBZ+3ZRLIELrTKSLtEgij82 porsHf4hPpfNiMHANXtr/wqFpRYBtS+FcMKxBVl4h1fDGv0LxvvipaOjcmrKs6/X EtibEmdZwTsh244r8W2PTI5fycD/JWkCzxIPTyNepswPdN5G76O5xHws9ugCuyQj ZaBEC7gyI8vfFtv3rbGpbRsYneHl9tL8VV/zCKMXROPG0c1Ij2D10u8J6kTLaL1w einiw+wzG1MErWu+AM8MmK65sHhwSFgiAEsvUfHaGqKzgzAvnx69dobegdY9uHY/ VcaABIbeGCsUd5GrwmaDOx5aL99m5m3eEKkqpyfM7w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjeeggddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdfuvhgv nhcurfgvthgvrhdfuceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrg htthgvrhhnpeelvefggeffheevtdeivefhkeehfeettdejteduveeiheevveeilefghfei veeiueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsvhgvnhesshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7E4CFA6007C; Tue, 3 Jan 2023 06:38:02 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1185-g841157300a-fm-20221208.002-g84115730 Mime-Version: 1.0 Message-Id: <8b8a3f31-936f-4595-83aa-8e5b0272f8a3@app.fastmail.com> In-Reply-To: <6f312af6160d1e10b616c9adbd1fd8f822db964d.1672473415.git.christophe.jaillet@wanadoo.fr> References: <6f312af6160d1e10b616c9adbd1fd8f822db964d.1672473415.git.christophe.jaillet@wanadoo.fr> Date: Tue, 03 Jan 2023 12:37:41 +0100 From: "Sven Peter" To: "Christophe JAILLET" , "Hector Martin" , "Alyssa Rosenzweig" , "Wim Van Sebroeck" , "Guenter Roeck" Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org Subject: Re: [PATCH] watchdog: apple: Use devm_clk_get_enabled() helper Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 31, 2022, at 08:57, 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 and avoids the need of a dedicated function used > with devm_add_action_or_reset(). > > Signed-off-by: Christophe JAILLET Reviewed-by: Sven Peter Thanks, Sven