[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <021d4b46-a559-4047-a6ca-98e30fd3e6b3@huawei.com>
Date: Tue, 3 Sep 2024 18:52:48 +0800
From: Li Zetao <lizetao1@...wei.com>
To: Kalle Valo <kvalo@...nel.org>
CC: <florian.fainelli@...adcom.com>, <andrew@...n.ch>, <olteanv@...il.com>,
<davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <wens@...e.org>, <jernej.skrabec@...il.com>,
<samuel@...lland.org>, <heiko@...ech.de>, <yisen.zhuang@...wei.com>,
<salil.mehta@...wei.com>, <hauke@...ke-m.de>, <alexandre.torgue@...s.st.com>,
<joabreu@...opsys.com>, <mcoquelin.stm32@...il.com>, <wellslutw@...il.com>,
<radhey.shyam.pandey@....com>, <michal.simek@....com>,
<ajay.kathat@...rochip.com>, <claudiu.beznea@...on.dev>,
<u.kleine-koenig@...gutronix.de>, <jacky_chou@...eedtech.com>,
<netdev@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-sunxi@...ts.linux.dev>, <linux-rockchip@...ts.infradead.org>,
<linux-stm32@...md-mailman.stormreply.com>, <linux-wireless@...r.kernel.org>
Subject: Re: [PATCH net-next 11/12] wifi: wilc1000: Convert using
devm_clk_get_optional_enabled() in wilc_sdio_probe()
Hi,
在 2024/9/3 0:38, Kalle Valo 写道:
> Li Zetao <lizetao1@...wei.com> writes:
>
>> Use devm_clk_get_optional_enabled() instead of devm_clk_get_optional() +
>> clk_prepare_enable(), which can make the clk consistent with the device
>> life cycle and reduce the risk of unreleased clk resources. Since the
>> device framework has automatically released the clk resource, there is
>> no need to execute clk_disable_unprepare(clk) on the error path, drop
>> the clk_disable_unprepare label, and the original error process can change
>> to dispose_irq.
>>
>> Signed-off-by: Li Zetao <lizetao1@...wei.com>
>> ---
>> drivers/net/wireless/microchip/wilc1000/sdio.c | 10 +++-------
>> 1 file changed, 3 insertions(+), 7 deletions(-)
>
> wifi patches (patches 11 and 12) go via wireless-next, please submit
> those separately.
Ok, I will resend those separately.
>
Thanks,
Li Zetao.
Powered by blists - more mailing lists