net: genet: enable link energy detect powerdown for external PHYs
authorJonathan Bell <jonathan@raspberrypi.org>
Tue, 14 May 2019 16:17:59 +0000 (17:17 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:55 +0000 (16:03 +0000)
commit5b0496e8cecf0002a579763913906710cbb263dd
treea65fdda29697b986ffb1b5d852d633e7c754802e
parent9269368739d8de6b9e719e38b1f0b4050bacf7b2
net: genet: enable link energy detect powerdown for external PHYs

There are several warts surrounding bcmgenet_mii_probe() as this
function is called from ndo_open, but it's calling registration-type
functions. The probe should be called at probe time and refactored
such that the PHY device data can be extracted to limit the scope
of this flag to Broadcom PHYs.

For now, pass this flag in as it puts our attached PHY into a low-power
state when disconnected.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.org>
drivers/net/ethernet/broadcom/genet/bcmmii.c