realtek: Fix link status detection on RTL9302 for SFP modules
authorBirger Koblitz <[email protected]>
Sun, 23 Jan 2022 11:03:17 +0000 (12:03 +0100)
committerPaul Spooren <[email protected]>
Wed, 2 Feb 2022 09:32:58 +0000 (10:32 +0100)
commit4602e2a1be43b0f79db923ef985f05819aef5dc6
treea91268b6e9bf5e6702da3fd8aed0095c072688ca
parenteaf561c00d7f5ffb9432c45f2fa629b5b67d57f9
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 <[email protected]>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/rtl838x.h