diff options
author | 2023-10-31 13:20:05 +0100 | |
---|---|---|
committer | 2023-11-03 11:33:18 +0000 | |
commit | 153a58c6d8976f289b52e6652932c1cb28a2eacd (patch) | |
tree | c01cd05154053570427aa3d6e4887ae0e2131145 /drivers/net/ethernet/ti | |
parent | tcp: fix fastopen code vs usec TS (diff) | |
download | linux-153a58c6d8976f289b52e6652932c1cb28a2eacd.tar.gz linux-153a58c6d8976f289b52e6652932c1cb28a2eacd.tar.bz2 linux-153a58c6d8976f289b52e6652932c1cb28a2eacd.zip |
net: ethernet: ti: am65-cpsw: rx_pause/tx_pause controls wrong direction
The rx_pause flag says that whether we support receiving Pause frames.
When a Pause frame is received TX is delayed for some time. This is TX
flow control. In the same manner tx_pause is actually RX flow control.
Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r-- | drivers/net/ethernet/ti/am65-cpsw-nuss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c index 24120605502f..ece9f8df98ae 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -1588,10 +1588,10 @@ static void am65_cpsw_nuss_mac_link_up(struct phylink_config *config, struct phy /* rx_pause/tx_pause */ if (rx_pause) - mac_control |= CPSW_SL_CTL_RX_FLOW_EN; + mac_control |= CPSW_SL_CTL_TX_FLOW_EN; if (tx_pause) - mac_control |= CPSW_SL_CTL_TX_FLOW_EN; + mac_control |= CPSW_SL_CTL_RX_FLOW_EN; cpsw_sl_ctl_set(port->slave.mac_sl, mac_control); |