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)
commit04aca9938255fc7097b3fb5700f408524656f2e2
treecc0cef500580b2911ff136f815145951b0493326
parent6335e9f2446b44139ac0722a81759a2b2f90bb4c
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