Re: bcm63xx_enet: Use devm_clk_get_enabled() in two probe functions

From
Markus Elfring <hidden>
Date
2026-11-26 19:01:14
Also in
kernel-janitors, lkml
Reply to
Christophe JAILLET, 2026-11-26
quoted
* 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?
I am probably looking for further background information besides
the commit 4e78e5c5d881bf2d6267545a554c1baf245257b7 ("bcm63xx_enet:
drop unneeded NULL phy_clk check") from 2017-10-01.
I hope that some software dependencies can still be clarified accordingly.

Do you find the handling for “priv->phy_clk” also unbalanced so far?

Regards,
Markus
Thread (15 messages) 15 messages, 4 authors, last reply 4d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help