Re: [PATCH net-next 2/3] net: bcmgenet: Pass "main" clock down to the MDIO driver

From: Andrew Lunn
Date: Sat Feb 17 2024 - 10:21:17 EST


On Fri, Feb 16, 2024 at 10:42:36AM -0800, Florian Fainelli wrote:
> GENET has historically had to create a MDIO platform device for its
> controller and pass some auxiliary data to it, like a MDIO completion
> callback. Now we also pass the "main" clock to allow for the MDIO bus
> controller to manage that clock adequately around I/O accesses.

I guess this code comes from before the times of DT? I would normally
expect to see a clock added to the DT node for the MDIO bus. But if
there is no node, because it is not in DT....

Andrew