Skip to content

Commit 93ef6ee

Browse files
Jiawen WuPaolo Abeni
authored andcommitted
net: pcs: xpcs: fix the wrong register that was written back
The value is read from the register TXGBE_RX_GEN_CTL3, and it should be written back to TXGBE_RX_GEN_CTL3 when it changes some fields. Cc: [email protected] Fixes: f629acc ("net: pcs: xpcs: support to switch mode for Wangxun NICs") Signed-off-by: Jiawen Wu <[email protected]> Reported-by: Russell King (Oracle) <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 45c0de1 commit 93ef6ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/pcs/pcs-xpcs-wx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static void txgbe_pma_config_1g(struct dw_xpcs *xpcs)
109109
txgbe_write_pma(xpcs, TXGBE_DFE_TAP_CTL0, 0);
110110
val = txgbe_read_pma(xpcs, TXGBE_RX_GEN_CTL3);
111111
val = u16_replace_bits(val, 0x4, TXGBE_RX_GEN_CTL3_LOS_TRSHLD0);
112-
txgbe_write_pma(xpcs, TXGBE_RX_EQ_ATTN_CTL, val);
112+
txgbe_write_pma(xpcs, TXGBE_RX_GEN_CTL3, val);
113113

114114
txgbe_write_pma(xpcs, TXGBE_MPLLA_CTL0, 0x20);
115115
txgbe_write_pma(xpcs, TXGBE_MPLLA_CTL3, 0x46);

0 commit comments

Comments
 (0)