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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3184ECA5517 for ; Wed, 13 Sep 2023 09:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9/pIVAz6fJZxD7VBRaSc1ye9YZ3KEJmVM1sjOFzlc9c=; b=S+TIxz7DJFNbY3 C4NHnHx3ilXJ/bmTQe4tggpoE28IfupDuCLoSUShhGNqGAHGVoUsZwYF4WydJA2zHBFck6mfHL4Xl 3i5H1yywS8NX8ErCR6owlQqBiszusKktJV3MGzwz+j9YxajZVEbYGOuv8phezv8yowd/KIrZF5CSQ EVjQldgqZN8ehH00KioZax97oTCXVwIUpsAGXWlS1rdhjrfJJirT9Y4LWDtT2VcDJqgUpGZWobpYc MmTj9ofwuuoTr52qj7E8XX/Da37j19uJ6BnnFTsvCd4eyNdcJUGT4rf8DNhPslW62poqHXW1kUyjk XUynHZTH6ofApZyH070Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgLyI-005HUD-0v; Wed, 13 Sep 2023 09:15:42 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgLyF-005HTE-0e; Wed, 13 Sep 2023 09:15:40 +0000 Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 02D43660732C; Wed, 13 Sep 2023 10:15:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1694596537; bh=+x1Lus2omcxwTQh/70pIi5tcxa6KKlOel+MXnr2anU0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hcXsAp5siwSYtRCayPcgeqa3e7E80a/nScSBAx0id8t3e3QvJE0LhZTRx3dwT2NCO q2cR4FFecXHuX+sQV4K9YolHUnqVmLq9/hfEqQAwQWIf8+rg4cLoasbOJUYd8eGb1N lyfZbNP3MhqJkgpaxazLxCeqyL4LTyMMK/yyc5QBFGGKBYmWld41mA+BTQytRFw6L8 Tj5qVxT1eF1r6EFTaFKqEHJGoPwMgj9UGWATja2Su7FtARhiPcJpHyZK9L9VX9l61N mUdYl5lPw7q3KPnicFNnUKvAhjUZcwurIBTbBkYLQAYKKvMakR9HqEPoVziC5g5Pe/ h1BTNoISIvWJw== Message-ID: <93074a59-8747-910e-0b76-4682e827ff73@collabora.com> Date: Wed, 13 Sep 2023 11:15:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH -next v2 19/25] spi: mtk-snfi: Use helper function devm_clk_get_enabled() Content-Language: en-US To: Li Zetao Cc: andrew@aj.id.au, avifishman70@gmail.com, bcm-kernel-feedback-list@broadcom.com, benjaminfair@google.com, broonie@kernel.org, chin-ting_kuo@aspeedtech.com, clg@kaod.org, conor.dooley@microchip.com, daire.mcnamara@microchip.com, fancer.lancer@gmail.com, florian.fainelli@broadcom.com, heiko@sntech.de, jbrunet@baylibre.com, joel@jms.id.au, khilman@baylibre.com, linus.walleij@linaro.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-mediatek@lists.infradead.org, linux-riscv@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-spi@vger.kernel.org, martin.blumenstingl@googlemail.com, matthias.bgg@gmail.com, neil.armstrong@linaro.org, olteanv@gmail.com, openbmc@lists.ozlabs.org, rjui@broadcom.com, sbranden@broadcom.com, tali.perry1@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com, Jonathan Cameron References: <20230822131237.1022815-1-lizetao1@huawei.com> <20230823133938.1359106-1-lizetao1@huawei.com> <20230823133938.1359106-20-lizetao1@huawei.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230823133938.1359106-20-lizetao1@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230913_021539_376683_62CED104 X-CRM114-Status: UNSURE ( 8.40 ) X-CRM114-Notice: Please train this message. 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Il 23/08/23 15:39, Li Zetao ha scritto: > Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared > and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be > replaced by devm_clk_get_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. > Also, devm_clk_get_optional() and clk_prepare_enable() can now be > replaced by devm_clk_get_optional_enabled().Moreover, the two functions > mtk_snand_enable_clk() and mtk_snand_disable_clk() no longer are used, > drop them for clean code. > > Reviewed-by: Jonathan Cameron > Signed-off-by: Li Zetao Reviewed-by: AngeloGioacchino Del Regno _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel