]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Down cpu/dsa ports phylink will control
authorAndrew Lunn <andrew@lunn.ch>
Tue, 14 Apr 2020 00:34:39 +0000 (02:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2020 23:33:26 +0000 (16:33 -0700)
commit0da96bd3f59c0e410f80c3c4783337fad8d8b7b2
tree6f64bee195b93659e90e5cf2b4e6f8f45473a54c
parentc2558b0d73ed2bc9771d2fb42d97b9a07b279c55
net: dsa: Down cpu/dsa ports phylink will control

DSA and CPU ports can be configured in two ways. By default, the
driver should configure such ports to there maximum bandwidth. For
most use cases, this is sufficient. When this default is insufficient,
a phylink instance can be bound to such ports, and phylink will
configure the port, e.g. based on fixed-link properties. phylink
assumes the port is initially down. Given that the driver should have
already configured it to its maximum speed, ask the driver to down
the port before instantiating the phylink instance.

Fixes: db00c73138b3 ("net: mv88e6xxx: use resolved link config in mac_link_up()")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c