rtl83xx: dsa: Clear duplex bit correctly
authorHarshal Gohel <hg@simonwunderlich.de>
Wed, 13 Dec 2023 07:29:36 +0000 (08:29 +0100)
committerSander Vanheule <sander@svanheule.net>
Tue, 9 Jan 2024 20:19:21 +0000 (21:19 +0100)
commitfe01435b6933756f4a916e4bccc409a88e3fcc56
tree9f18934a897894aa36c5fb2aa86d482eb0c28444
parent2cfb1ecf103558a23c19ac55721dd4bfb0f7d4c1
rtl83xx: dsa: Clear duplex bit correctly

Without this, luci shows 10M full duplex when there is no link. So
explicitly set half duplex and unknown speed.

Acked-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/dsa.c