rtl93xx: fix condition intended to only select internal serdes ports
authorPeter Körner <git@mazdermind.de>
Sun, 24 Sep 2023 18:58:13 +0000 (20:58 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 3 Oct 2023 17:02:09 +0000 (19:02 +0200)
commit3fff6255422c9223fe91ce68dd227ec6942aa688
tree3ae5dbd73b7fb535fcb0c4275c2f6da369892e85
parente92cf0c46ffe3ac7fca936c18577bfb19eb4ce9e
rtl93xx: fix condition intended to only select internal serdes ports

This condition was introduced in commit 51c8f7661244 ("realtek: Improve
MAC config handling for all SoCs") to correctly report the speed of the
internal serdes ports as 10G, but instead makes all ports read 10G
because the or-operator should have been an and-operator.

Fixes: #9953
Fixes: 51c8f7661244 ("realtek: Improve MAC config handling for all SoCs")
Signed-off-by: Peter Körner <git@mazdermind.de>
[ wrap comment to 72 column and improve commit ref ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 9fb5082e258ac4672dc69636e5eb79f426defac8)
target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/dsa.c