]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: dsa: bcm_sf2: implement GPHY power down
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 5 Feb 2015 19:40:42 +0000 (11:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 06:38:40 +0000 (22:38 -0800)
commit9af197a8f6ecab8c22e4ad0167616151fce5a4cb
tree95f757336beda2400a803524c21a5ea2e2207119
parentb083668c93e5bf889e6ec4761540be1accc3f1b1
net: dsa: bcm_sf2: implement GPHY power down

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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/bcm_sf2_regs.h