From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E446B1C16 for ; Mon, 21 Aug 2023 07:57:41 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id CD0301C0005; Mon, 21 Aug 2023 07:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1692604653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mcKt8IDEFBZAch8pCaJAsFnooGm8InpTzIUwhJUPrE0=; b=T6Vl1XSXCAZaMLMuPzr/8nIYOwXX1QvQoO+gvjHHOGTUufXkwhUMQTMf0fLeM4fS2r7mXz +E+Lmw9WbipQBk6uJycrX2pNqghcErmYAGnjCnqFCQ2ivbiExfKGD2fcxbU7R6Q6zq60Bi VAFsV9ya+Rk+JO171MjRWEXrT/xvmeWKklOpVHoBnOIH85O00M0ZQv+4dQEFa9eRTrCKkM uLCUAW7AYLfyffu+HsvnRNAjTggHuNT8Dxhf8ld4fznaFh7ZHlEiucGM2NtXg8xTuvtyAA 3zBkBwe0/zYSvt2fdfBCeifdbKsMQJy6SRM1Ft/3RR38+kFQyqd41H5XTC15Rg== From: Miquel Raynal To: Li Zetao , miquel.raynal@bootlin.com Cc: alexandre.torgue@foss.st.com, angelogioacchino.delregno@collabora.com, christophe.kerello@foss.st.com, christophe.leroy@csgroup.eu, dmitry.torokhov@gmail.com, frank.li@vivo.com, geert+renesas@glider.be, heiko@sntech.de, jernej.skrabec@gmail.com, jinpu.wang@ionos.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-mtd@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, martin.blumenstingl@googlemail.com, matthias.bgg@gmail.com, mcoquelin.stm32@gmail.com, michael@walle.cc, michal.simek@amd.com, paul@crapouillou.net, philmd@linaro.org, pratyush@kernel.org, richard@nod.at, robh@kernel.org, rogerq@kernel.org, samuel@sholland.org, stefan@agner.ch, tudor.ambarus@linaro.org, u.kleine-koenig@pengutronix.de, vigneshr@ti.com, vz@mleia.com, wens@csie.org, yangyingliang@huawei.com Subject: Re: [PATCH -next v3 12/12] mtd: rawnand: orion: Use helper function devm_clk_get_optional_enabled() Date: Mon, 21 Aug 2023 09:57:29 +0200 Message-Id: <20230821075729.33115-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230821031737.1973183-13-lizetao1@huawei.com> References: Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'2c11ea7bee3126f89d0e1b6fec0956b20017ce83' Content-Transfer-Encoding: 8bit X-GND-Sasl: miquel.raynal@bootlin.com On Mon, 2023-08-21 at 03:17:37 UTC, Li Zetao wrote: > Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared > and enabled clocks"), devm_clk_get_optional() and clk_prepare_enable() can > now be replaced by devm_clk_get_optional_enabled() when driver enables > (and possibly prepares) the clocks for the whole lifetime of the device. > Moreover, it is no longer necessary to unprepare and disable the clocks > explicitly, so drop the label "no_dev". > > Reviewed-by: Miquel Raynal > Signed-off-by: Li Zetao Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel