net: dsa: rtl8366rb: Switch to phylink
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 6 Sep 2020 21:24:15 +0000 (23:24 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Sep 2020 19:38:27 +0000 (12:38 -0700)
commitbb1416adb8a084f2979ac9536dca3e4c44d45821
tree6382a6179902ce3383682aa4d099369b8dc2c56a
parentd966ddcc38217a6110a6a0ff37ad2dee7d42e23e
net: dsa: rtl8366rb: Switch to phylink

This switches the RTL8366RB over to using phylink callbacks
instead of .adjust_link(). This is a pretty template
switchover. All we adjust is the CPU port so that is why
the code only inspects this port.

We enhance by adding proper error messages, also disabling
the CPU port on the way down and moving dev_info() to
dev_dbg().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/rtl8366rb.c