net: dsa :mv88e6xxx: Disable unused ports
authorAndrew Lunn <andrew@lunn.ch>
Tue, 30 Apr 2019 22:08:31 +0000 (00:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 May 2019 03:53:06 +0000 (23:53 -0400)
commit100a9b9d75051739f6d33e5182fc9871f6012765
treebef41277851ad85fba3d13e498d2cb3ea00cb646
parent4a0eb731d68362169d3d304ffa5afb6972909ab8
net: dsa :mv88e6xxx: Disable unused ports

If the NO_CPU strap is set, the switch starts in 'dumb hub' mode, with
all ports enable. Ports which are then actively used are reconfigured
as required when the driver starts. However unused ports are left
alone. Change this to disable them, and turn off any SERDES
interface. This could save some power and so reduce the temperature a
bit.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c