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

From: Markus Elfring

Date: Thu Nov 26 2026 - 14:01:18 EST


>> * 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