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

From
Christophe JAILLET <hidden>
Date
2026-11-26 17:30:17
Also in
kernel-janitors, lkml
Reply to
Markus Elfring, 2026-11-26
Le 26/11/2026 à 07:30, Markus Elfring a écrit :
quoted
quoted
quoted
Why changing only one devm_clk_get()?
The change relevance is varying for the involved clocks of the affected Linux drivers,
isn't it?
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()?
The ungating of the item “priv->phy_clk” depends on special condition checks.
This does not answer the question.
https://elixir.bootlin.com/linux/v7.4-rc1/source/drivers/net/ethernet/broadcom/bcm63xx_enet.c#L1789-L1800

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