Skip to content

Commit

Permalink
net: macb: fix for pause frame receive enable bit
Browse files Browse the repository at this point in the history
PAE bit of NCFGR register, when set, pauses transmission
if a non-zero 802.3 classic pause frame is received.

Fixes: 7897b07 ("net: macb: convert to phylink")
Signed-off-by: Parshuram Thombare <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
pthombarcdns authored and kuba-moo committed Sep 6, 2020
1 parent 94cc242 commit d7739b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/cadence/macb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,7 @@ static void macb_mac_link_up(struct phylink_config *config,
ctrl |= GEM_BIT(GBE);
}

/* We do not support MLO_PAUSE_RX yet */
if (tx_pause)
if (rx_pause)
ctrl |= MACB_BIT(PAE);

macb_set_tx_clk(bp->tx_clk, speed, ndev);
Expand Down

0 comments on commit d7739b0

Please sign in to comment.