realtek: 5.15: rtl93xx: support 100BASE-T and 10BASE-T MAC modes

The MAC embedded in rtl93xx switch SoCs needs different mac mode bits set
to support 10BaseT and 100BaseT link modes. Set them accordingly.

This change has been tested on a ZyXEL XGS1250-12.

Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
This commit is contained in:
Tobias Schramm 2023-12-23 13:41:01 +01:00 committed by David Bauer
parent 8de4cc77a6
commit 8b706d9297

View File

@ -854,8 +854,11 @@ static void rtl93xx_phylink_mac_config(struct dsa_switch *ds, int port,
case SPEED_1000:
reg |= 2 << 3;
break;
case SPEED_100:
reg |= 1 << 3;
break;
default:
reg |= 2 << 3;
/* Also covers 10M */
break;
}