summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/bcm_sf2.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-09-25 00:05:18 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-09-28 21:14:08 (GMT)
commitb2f2af21e37f6d12bd735c27da8942331aa9b3d7 (patch)
tree7273e1535a2000d8fb2c651e0e058e39018504b2 /drivers/net/dsa/bcm_sf2.c
parentf7f1de51edbdd53b09061d12758cacd9901c363e (diff)
downloadlinux-b2f2af21e37f6d12bd735c27da8942331aa9b3d7.tar.xz
net: dsa: allow enabling and disable switch ports
Whenever a per-port network device is used/unused, invoke the switch driver port_enable/port_disable callbacks to allow saving as much power as possible by disabling unused parts of the switch (RX/TX logic, memory arrays, PHYs...). We supply a PHY device argument to make sure the switch driver can act on the PHY device if needed (like putting/taking the PHY out of deep low power mode). Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.c')
0 files changed, 0 insertions, 0 deletions