Commit d7739b0b authored by Parshuram Thombare's avatar Parshuram Thombare Committed by Jakub Kicinski
Browse files

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: 7897b071 ("net: macb: convert to phylink")
Signed-off-by: default avatarParshuram Thombare <pthombar@cadence.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 94cc242a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);