mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
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
1 changed files with 1 additions and 2 deletions
|
@ -647,8 +647,7 @@ static void macb_mac_link_up(struct phylink_config *config,
|
||||||
ctrl |= GEM_BIT(GBE);
|
ctrl |= GEM_BIT(GBE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We do not support MLO_PAUSE_RX yet */
|
if (rx_pause)
|
||||||
if (tx_pause)
|
|
||||||
ctrl |= MACB_BIT(PAE);
|
ctrl |= MACB_BIT(PAE);
|
||||||
|
|
||||||
macb_set_tx_clk(bp->tx_clk, speed, ndev);
|
macb_set_tx_clk(bp->tx_clk, speed, ndev);
|
||||||
|
|
Loading…
Reference in a new issue