]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Disable all ports on setup
authorBenedikt Spranger <b.spranger@linutronix.de>
Fri, 28 Jun 2019 16:58:11 +0000 (18:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 20:34:13 +0000 (13:34 -0700)
commitc421bd8e6ddef96f281e70294f87b96abcdda062
tree93702853dcbf3bf37008224885712d5cb9c626a9
parenta15a0fb093a69aa18c7ab347e7ce902c6c0a9d30
net: dsa: b53: Disable all ports on setup

A b53 device may configured through an external EEPROM like the switch
device on the Lamobo R1 router board. The configuration of a port may
therefore differ from the reset configuration of the switch.

The switch configuration reported by the DSA subsystem is different until
the port is configured by DSA i.e. a port can be active, while the DSA
subsystem reports the port is inactive. Disable all ports and not only
the unused ones to put all ports into a well defined state.

Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c