OSDN Git Service

net: bcmgenet: Ensure MDIO unregistration has clocks enabled
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Thu, 22 Jun 2023 10:31:07 +0000 (03:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Jun 2023 01:59:10 +0000 (18:59 -0700)
commit1b5ea7ffb7a3bdfffb4b7f40ce0d20a3372ee405
tree25c69ccbb5858baef36ef7886747bbb3f02301be
parent6f68fc395f49fb43f6ae801c340953ee4f793e98
net: bcmgenet: Ensure MDIO unregistration has clocks enabled

With support for Ethernet PHY LEDs having been added, while
unregistering a MDIO bus and its child device liks PHYs there may be
"late" accesses to the MDIO bus. One typical use case is setting the PHY
LEDs brightness to OFF for instance.

We need to ensure that the MDIO bus controller remains entirely
functional since it runs off the main GENET adapter clock.

Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/20230617155500.4005881-1-andrew@lunn.ch/
Fixes: 9a4e79697009 ("net: bcmgenet: utilize generic Broadcom UniMAC MDIO controller driver")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230622103107.1760280-1-florian.fainelli@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/genet/bcmmii.c