net: bcmgenet: Pass "main" clock down to the MDIO driver
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Mon, 19 Feb 2024 20:40:52 +0000 (12:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2024 12:46:17 +0000 (12:46 +0000)
commitee2b4cf8b281606bbf332cbd73ce2a73eac417f0
tree73cdef385d628f051d97c6b3983668103bc3750a
parentee975351cf0c2a11cdf97eae58265c126cb32850
net: bcmgenet: Pass "main" clock down to the MDIO driver

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.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c