ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: Li Zetao <lizetao1@huawei.com>
To: <mchehab@kernel.org>, <davem@davemloft.net>,
	<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
	<wens@csie.org>, <jernej.skrabec@gmail.com>,
	<samuel@sholland.org>, <heiko@sntech.de>,
	<yisen.zhuang@huawei.com>, <salil.mehta@huawei.com>,
	<hauke@hauke-m.de>, <alexandre.torgue@foss.st.com>,
	<joabreu@synopsys.com>, <mcoquelin.stm32@gmail.com>,
	<wellslutw@gmail.com>, <radhey.shyam.pandey@amd.com>,
	<michal.simek@amd.com>, <hdegoede@redhat.com>,
	<ilpo.jarvinen@linux.intel.com>, <ruanjinjie@huawei.com>,
	<hverkuil-cisco@xs4all.nl>, <u.kleine-koenig@pengutronix.de>,
	<jacky_chou@aspeedtech.com>, <jacob.e.keller@intel.com>
Cc: <linux-media@vger.kernel.org>, <netdev@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-sunxi@lists.linux.dev>,
	<linux-rockchip@lists.infradead.org>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<platform-driver-x86@vger.kernel.org>
Subject: Re: [PATCH net-next v2 00/10] net: Convert using devm_clk_get_enabled()/devm_clk_get_optional_enabled()
Date: Sat, 7 Sep 2024 11:03:35 +0800	[thread overview]
Message-ID: <33b03d5a-ec1e-4aa1-be17-3e67707ad6d2@huawei.com> (raw)
In-Reply-To: <20240907031009.3591057-1-lizetao1@huawei.com>

Sorry to bother you, I made a small mistake when I sent the patch. 
Please ignore the patchset.

在 2024/9/7 11:09, Li Zetao 写道:
> v1 -> v2:
>    1) Patch 5 optimizes the check and adds commit information for easier
>    inspection.
>    2) It is no longer necessary to use clk, so delete the clk member of
>    the spl2sw_common structure.
>    3) Remove patches 11 and 12, they should be sent to wireless-next
>    individually
> 
> v1:
> https://lore.kernel.org/all/20240831021334.1907921-1-lizetao1@huawei.com/
> 
> There are many examples[1][2] of clk resource leakage in LTS. The
> reason is that developers need to maintain the allocation and release
> of clk resources themselves, but this will increase the burden on
> developers. Using the API related to devm_clk_get_*_enable ensures
> that the life cycle of clk is consistent with that of the device,
> reducing the risk of unreleased resources like clk.
> 
> Several other developers are also working on converting to more
> secure interfaces, and this patch set is in principle the same as
> theirs.
> 
> [1]:
> https://lore.kernel.org/all/20240812160128.338041191@linuxfoundation.org/
> [2]:
> https://lore.kernel.org/all/20240812160135.992451065@linuxfoundation.org/
> 
> Li Zetao (10):
>    net: dsa: bcm_sf2: Convert using devm_clk_get_optional_enabled() in
>      bcm_sf2_sw_probe()
>    net: ethernet: Convert using devm_clk_get_enabled() in emac_probe()
>    net: ethernet: arc: Convert using devm_clk_get_enabled() in
>      emac_probe()
>    net: ethernet: ethoc: Convert using devm_clk_get_enabled() in
>      ethoc_probe()
>    net: ftgmac100: Convert using devm_clk_get_enabled() in
>      ftgmac100_setup_clk()
>    net: ethernet: hisilicon: Convert using devm_clk_get_enabled() in
>      hisi_femac_drv_probe()
>    net: lantiq_xrx200: Convert using devm_clk_get_enabled() in
>      xrx200_probe()
>    net: stmmac: dwmac-dwc-qos-eth: Convert using devm_clk_get_enabled()
>      in dwc_qos_probe()
>    net: ethernet: sunplus: Convert using devm_clk_get_enabled() in
>      spl2sw_probe()
>    net: xilinx: axienet: Convert using devm_clk_get_optional_enabled() in
>      axienet_probe()
> 
>   drivers/net/dsa/bcm_sf2.c                     | 28 ++----
>   drivers/net/ethernet/allwinner/sun4i-emac.c   | 13 +--
>   drivers/net/ethernet/arc/emac_rockchip.c      | 34 ++-----
>   drivers/net/ethernet/ethoc.c                  | 18 ++--
>   drivers/net/ethernet/faraday/ftgmac100.c      | 26 +----
>   drivers/net/ethernet/hisilicon/hisi_femac.c   | 17 +---
>   drivers/net/ethernet/lantiq_xrx200.c          | 17 +---
>   .../stmicro/stmmac/dwmac-dwc-qos-eth.c        | 98 ++++---------------
>   drivers/net/ethernet/sunplus/spl2sw_define.h  |  1 -
>   drivers/net/ethernet/sunplus/spl2sw_driver.c  | 25 ++---
>   .../net/ethernet/xilinx/xilinx_axienet_main.c | 15 +--
>   11 files changed, 62 insertions(+), 230 deletions(-)
> 

  reply	other threads:[~2024-09-07  3:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-07  3:09 [PATCH net-next v2 00/10] net: Convert using devm_clk_get_enabled()/devm_clk_get_optional_enabled() Li Zetao
2024-09-07  3:03 ` Li Zetao [this message]
2024-09-07  3:09 ` [PATCH -next v2] platform/olpc: Remove redundant null pointer checks in olpc_ec_setup_debugfs() Li Zetao
2024-09-11 12:20   ` Hans de Goede
2024-09-07  3:10 ` [PATCH -next v2 2/2] media: siano: remove redundant null pointer checks in cec_devnode_init() Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 02/10] net: ethernet: Convert using devm_clk_get_enabled() in emac_probe() Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 03/10] net: ethernet: arc: " Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 04/10] net: ethernet: ethoc: Convert using devm_clk_get_enabled() in ethoc_probe() Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 05/10] net: ftgmac100: Convert using devm_clk_get_enabled() in ftgmac100_setup_clk() Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 06/10] net: ethernet: hisilicon: Convert using devm_clk_get_enabled() in hisi_femac_drv_probe() Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 07/10] net: lantiq_xrx200: Convert using devm_clk_get_enabled() in xrx200_probe() Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 08/10] net: stmmac: dwmac-dwc-qos-eth: Convert using devm_clk_get_enabled() in dwc_qos_probe() Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 09/10] net: ethernet: sunplus: Convert using devm_clk_get_enabled() in spl2sw_probe() Li Zetao
2024-09-07  3:10 ` [PATCH net-next v2 10/10] net: xilinx: axienet: Convert using devm_clk_get_optional_enabled() in axienet_probe() Li Zetao
  -- strict thread matches above, loose matches on Subject: below --
2024-09-07  3:19 [PATCH net-next v2 00/10] net: Convert using devm_clk_get_enabled()/devm_clk_get_optional_enabled() Li Zetao
2024-09-11  3:08 ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=33b03d5a-ec1e-4aa1-be17-3e67707ad6d2@huawei.com \
    --to=lizetao1@huawei.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hauke@hauke-m.de \
    --cc=hdegoede@redhat.com \
    --cc=heiko@sntech.de \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jacky_chou@aspeedtech.com \
    --cc=jacob.e.keller@intel.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=joabreu@synopsys.com \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=michal.simek@amd.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=radhey.shyam.pandey@amd.com \
    --cc=ruanjinjie@huawei.com \
    --cc=salil.mehta@huawei.com \
    --cc=samuel@sholland.org \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=wellslutw@gmail.com \
    --cc=wens@csie.org \
    --cc=yisen.zhuang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox