]> Git Repo - linux.git/commit - include/net/dsa.h
net: dsa: allow enabling and disable switch ports
authorFlorian Fainelli <[email protected]>
Thu, 25 Sep 2014 00:05:18 +0000 (17:05 -0700)
committerDavid S. Miller <[email protected]>
Sun, 28 Sep 2014 21:14:08 +0000 (17:14 -0400)
commitb2f2af21e37f6d12bd735c27da8942331aa9b3d7
tree7273e1535a2000d8fb2c651e0e058e39018504b2
parentf7f1de51edbdd53b09061d12758cacd9901c363e
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/net/dsa.h
net/dsa/slave.c
This page took 0.055589 seconds and 4 git commands to generate.