realtek: Fix link status detection on RTL9302 for SFP modules
authorBirger Koblitz <git@birger-koblitz.de>
Sun, 23 Jan 2022 11:03:17 +0000 (12:03 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 17 Feb 2022 15:21:47 +0000 (15:21 +0000)
commit3cab11ad13d795650be4745815ad2829e74d430f
treedc0cbbb3fc1428110b92f746ab25ba4e4aeb5770
parent0b8dfe085180b58b81d2657c76b080168e3bc8df
realtek: Fix link status detection on RTL9302 for SFP modules

For SFP slots on the RTL9302, the link status is not correctly detected.
Use the link media status instead.

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/rtl838x.h