# Re: bcm63xx\_enet: Use devm\_clk\_get\_enabled() in two probe functions

- From: Christophe JAILLET \<hidden\>
- Date: 2026-11-25 22:08:44 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/11/18027233
- Thread: https://ratatoskr.run/netdev/2026/11/18015206/t.md

```text
Le 25/11/2026 à 19:42, Markus Elfring a écrit :
>> 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()?

>
> * bcm_enet_probe()
>    https://elixir.bootlin.com/linux/v7.4-rc1/source/drivers/net/ethernet/broadcom/bcm63xx_enet.c#L1711-L1898
>
> * bcm_enetsw_probe()
>    https://elixir.bootlin.com/linux/v7.4-rc1/source/drivers/net/ethernet/broadcom/bcm63xx_enet.c#L2641-L2735
>
>
> Regards,
> Markus

```
