Skip to content

Commit

Permalink
realtek: 5.15: rtl93xx: support 100BASE-T and 10BASE-T MAC modes
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
TobleMiner authored and blocktrron committed Dec 24, 2023
1 parent 8de4cc7 commit 8b706d9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8b706d9

Please sign in to comment.