Skip to content

Commit f6c365f

Browse files
Jia Jie Hodavem330
authored andcommitted
net: ethernet: Fix SGMII unable to switch speed and autonego failure
TSE PCS SGMII ethernet has an issue where switching speed doesn't work caused by a faulty register macro offset. This fixes the issue. Signed-off-by: Jia Jie Ho <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e76d21c commit f6c365f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
#define TSE_PCS_SGMII_LINK_TIMER_0 0x0D40
6464
#define TSE_PCS_SGMII_LINK_TIMER_1 0x0003
6565
#define TSE_PCS_SW_RESET_TIMEOUT 100
66-
#define TSE_PCS_USE_SGMII_AN_MASK BIT(2)
67-
#define TSE_PCS_USE_SGMII_ENA BIT(1)
66+
#define TSE_PCS_USE_SGMII_AN_MASK BIT(1)
67+
#define TSE_PCS_USE_SGMII_ENA BIT(0)
6868

6969
#define SGMII_ADAPTER_CTRL_REG 0x00
7070
#define SGMII_ADAPTER_DISABLE 0x0001

0 commit comments

Comments
 (0)