Skip to content

Commit 153a58c

Browse files
tanstafeldavem330
authored andcommitted
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>
1 parent cdbab62 commit 153a58c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/ti/am65-cpsw-nuss.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,10 +1588,10 @@ static void am65_cpsw_nuss_mac_link_up(struct phylink_config *config, struct phy
15881588

15891589
/* rx_pause/tx_pause */
15901590
if (rx_pause)
1591-
mac_control |= CPSW_SL_CTL_RX_FLOW_EN;
1591+
mac_control |= CPSW_SL_CTL_TX_FLOW_EN;
15921592

15931593
if (tx_pause)
1594-
mac_control |= CPSW_SL_CTL_TX_FLOW_EN;
1594+
mac_control |= CPSW_SL_CTL_RX_FLOW_EN;
15951595

15961596
cpsw_sl_ctl_set(port->slave.mac_sl, mac_control);
15971597

0 commit comments

Comments
 (0)