• Andrew Lunn's avatar
    net: dsa: Down cpu/dsa ports phylink will control · 3be98b2d
    Andrew Lunn authored
    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: 30c4a5b0 ("net: mv88e6xxx: use resolved link config in mac_link_up()")
    Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3be98b2d
port.c 17.5 KB