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

From
Markus Elfring <hidden>
Date
2026-11-26 16:15:45
Also in
kernel-janitors, lkml
Reply to
Christophe JAILLET, 2026-11-25
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?


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