• Florian Fainelli's avatar
    net: dsa: bcm_sf2: implement GPHY power down · 9af197a8
    Florian Fainelli authored
    Implement the power on/off recommended procedure for the Single GPHY we
    have on our Starfighter 2 switch. In order to make sure we get proper
    LED link/activity signaling during suspend, switch the link indication
    from the Switch/MAC to the PHY.
    
    Finally, since the GPHY needs to be reset to be put in low power mode,
    we will loose any context applied to it: workarounds, EEE etc.. so we
    need to call phy_init_hw() to get our fixups re-applied successfully.
    Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9af197a8
bcm_sf2.c 23.5 KB