]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: mv88e6xxx: Enable/Disable SERDES on port enable/disable
authorAndrew Lunn <andrew@lunn.ch>
Thu, 25 May 2017 23:03:24 +0000 (01:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:00:45 +0000 (15:00 -0400)
commit51200896d1efbda6d33fe02a08459d87b300957e
treecc0cef500580b2911ff136f815145951b0493326
parent74e0d41df6016c62c7dff227c38d9622faf40b16
dsa: mv88e6xxx: Enable/Disable SERDES on port enable/disable

Implement the port enable/disable callbacks, which enable/disable the
SERDES interfaces, if applicable. This should save a bit of
power/heat.

We also need to enable SERDES on CPU and DSA ports, so keep the
existing call to the op, but make it conditional.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c