# Re: net: dsa: bcm\_sf2: Use devm\_clk\_get\_optional\_enabled() in bcm\_sf2\_sw\_probe()

- From: Markus Elfring \<hidden\>
- Date: 2026-11-20 06:55:09 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/11/17989999
- Thread: https://ratatoskr.run/netdev/2026/11/17985984/t.md

```text
> NACK, this patch is wrong because the remove function and the error handling path of the probe need to be updated.
Will further collateral evolution become possible?
https://elixir.bootlin.com/linux/v7.4-rc1/source/include/linux/clk.h#L680-L699
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/driver-api/driver-model/devres.rst?id=d220c9443db6e5f20a60cad55c6a0ae7a75c63b8#n242

https://elixir.bootlin.com/linux/v7.4-rc1/source/drivers/net/dsa/bcm_sf2.c#L1365-L1568

Regards,
Markus
```
