net: dsa: bcm_sf2: disable RGMII interface(s) when link is down
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 25 Sep 2014 00:05:19 +0000 (17:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Sep 2014 21:14:09 +0000 (17:14 -0400)
commit7de1557ce7521e756974d5c28794c2375d28e3cc
treed8744be27bcc91ad7918e78db3220d9b9495a6c5
parentb2f2af21e37f6d12bd735c27da8942331aa9b3d7
net: dsa: bcm_sf2: disable RGMII interface(s) when link is down

When the link is down, disable the RGMII interface to conserve as much
power as possible. We re-enable the RGMII interface whenever the link is
detected.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c