]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0def7195feb64fff528e38e0e49e850417795247
tree6382a6179902ce3383682aa4d099369b8dc2c56a
parent09e2a56e204b254a20a5900dd171320440aa3f8d
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