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)
committerpopcornmix <popcornmix@gmail.com>
Thu, 13 Jun 2019 10:45:15 +0000 (11:45 +0100)
commiteb5df670a81d7dfa879938ba0eaac679f024b264
treeebbbe05bc4636e41fd098d1a3e08f34207d4da1f
parent6502950aad1ba53d3eb7aab309d9d3d232050f52
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