Revert "ramips: disable PORT 5 MAC RX/TX flow control by default"
The TX/RX flow control is not the cause of the TX timeouts issue Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
parent
3407d03c12
commit
5d932412b0
@ -98,9 +98,15 @@ static void mt7621_hw_init(struct mt7620_gsw *gsw, struct device_node *np)
|
||||
mt7530_mdio_w32(gsw, 0x7000, 0x3);
|
||||
usleep_range(10, 20);
|
||||
|
||||
/* (GE1, Force 1000M/FD, FC OFF, MAX_RX_LENGTH 1536) */
|
||||
mtk_switch_w32(gsw, 0x2305e30b, GSW_REG_MAC_P0_MCR);
|
||||
mt7530_mdio_w32(gsw, 0x3600, 0x5e30b);
|
||||
if ((rt_sysc_r32(SYSC_REG_CHIP_REV_ID) & 0xFFFF) == 0x0101) {
|
||||
/* (GE1, Force 1000M/FD, FC ON, MAX_RX_LENGTH 1536) */
|
||||
mtk_switch_w32(gsw, 0x2305e30b, GSW_REG_MAC_P0_MCR);
|
||||
mt7530_mdio_w32(gsw, 0x3600, 0x5e30b);
|
||||
} else {
|
||||
/* (GE1, Force 1000M/FD, FC ON, MAX_RX_LENGTH 1536) */
|
||||
mtk_switch_w32(gsw, 0x2305e33b, GSW_REG_MAC_P0_MCR);
|
||||
mt7530_mdio_w32(gsw, 0x3600, 0x5e33b);
|
||||
}
|
||||
|
||||
/* (GE2, Link down) */
|
||||
mtk_switch_w32(gsw, 0x8000, GSW_REG_MAC_P1_MCR);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user