net: dsa: rtl8366rb: Implement setting up link on CPU port
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Sep 2023 21:24:18 +0000 (23:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Sep 2023 09:37:07 +0000 (10:37 +0100)
commit7c192ce9ff1d93f004fa6cdc0f567f5ab3dd4feb
treea30cb9ae268df8051015b77c7284f4eb02473b24
parent35293cb392e6823e35917229c2a9ea01f3176d96
net: dsa: rtl8366rb: Implement setting up link on CPU port

We auto-negotiate most ports in the RTL8366RB driver, but
the CPU port is hard-coded to 1Gbit, full duplex, tx and
rx pause.

This isn't very nice. People may configure speed and
duplex differently in the device tree.

Actually respect the arguments passed to the function for
the CPU port, which get passed properly after Russell's
patch "net: dsa: realtek: add phylink_get_caps implementation"

After this the link is still set up properly.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/realtek/rtl8366rb.c