From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: Markus Elfring <Markus.Elfring@web.de>,
netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Hemanth Selam <hemanth.selam@gmail.com>,
Jakub Kicinski <kuba@kernel.org>,
Jonas Gorski <jonas.gorski@gmail.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Frank Li <Frank.Li@kernel.org>
Subject: Re: bcm63xx_enet: Use devm_clk_get_enabled() in two probe functions
Date: Thu, 26 Nov 2026 19:12:58 +0100 [thread overview]
Message-ID: <d9061bf1-2445-425e-a254-0b33dcf4db8f@wanadoo.fr> (raw)
In-Reply-To: <a526e002-c8fc-4935-95f9-5943cb557e99@web.de>
Le 26/11/2026 à 17:15, Markus Elfring a écrit :
>> Your patch is related to bcm_enet_probe().
>>
>> See L1754 and L1791. These 2 calls are related to 2 clk_disable_unprepare() calls in the error handling path and in the remove function.
>>
>> Why only update one place, and keep one clk_disable_unprepare()?
>
> I got also the impression finally that implementation details would need
> further clarifications and development considerations.
>
> * Conditions are checked for the ungating of the item “priv->phy_clk”.
> https://elixir.bootlin.com/linux/v7.4-rc1/source/drivers/net/ethernet/broadcom/bcm63xx_enet.c#L1789-L1800
>
> * But a clk_disable_unprepare(priv->phy_clk) call is unconditionally performed
> in the implementation of the function “bcm_enet_remove” so far.
> https://elixir.bootlin.com/linux/v7.4-rc1/source/drivers/net/ethernet/broadcom/bcm63xx_enet.c#L1930
>
> Is there a need to adjust the control flow any further?
You kwow the answer, it used to be one of your favorite pattern, so why ask?
>
>
> Regards,
> Markus
next prev parent reply other threads:[~2026-11-26 18:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 19:23 [PATCH net-next] " Markus Elfring
2026-11-24 20:20 ` Andy Shevchenko
2026-11-24 20:28 ` Markus Elfring
2026-11-25 18:17 ` [PATCH net-next] " Christophe JAILLET
2026-11-25 18:42 ` Markus Elfring
2026-11-25 22:08 ` Christophe JAILLET
2026-11-26 6:30 ` Markus Elfring
2026-11-26 17:30 ` Christophe JAILLET
2026-11-26 17:36 ` Markus Elfring
2026-11-26 18:14 ` Christophe JAILLET
2026-11-26 16:15 ` Markus Elfring
2026-11-26 18:12 ` Christophe JAILLET [this message]
2026-11-26 19:00 ` Markus Elfring
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=d9061bf1-2445-425e-a254-0b33dcf4db8f@wanadoo.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=Frank.Li@kernel.org \
--cc=Markus.Elfring@web.de \
--cc=andrew+netdev@lunn.ch \
--cc=andriy.shevchenko@linux.intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=f.fainelli@gmail.com \
--cc=hemanth.selam@gmail.com \
--cc=horms@kernel.org \
--cc=jonas.gorski@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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
all inboxes | Powered by JetHome®