From: Florian Fainelli Date: Thu, 25 Sep 2014 00:05:18 +0000 (-0700) Subject: net: dsa: allow enabling and disable switch ports X-Git-Tag: fixes-against-v3.18-rc2~144^2~130^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2f2af21e37f6d12bd735c27da8942331aa9b3d7;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed