net: macb: fix for pause frame receive enable bit
PAE bit of NCFGR register, when set, pauses transmission
if a non-zero 802.3 classic pause frame is received.
Fixes: 7897b071ac
("net: macb: convert to phylink")
Signed-off-by: Parshuram Thombare <pthombar@cadence.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
94cc242a06
commit
d7739b0b6d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue