Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Parshuram Thombare <pthombar@cadence.com>
To: <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>
Cc: <claudiu.beznea@microchip.com>, <antoine.tenart@bootlin.com>,
<davem@davemloft.net>, <netdev@vger.kernel.org>,
<f.fainelli@gmail.com>, <linux-kernel@vger.kernel.org>,
<mparab@cadence.com>, Parshuram Thombare <pthombar@cadence.com>
Subject: [PATCH net] net: macb: fix for pause frame receive enable bit
Date: Sat, 5 Sep 2020 10:21:33 +0200 [thread overview]
Message-ID: <1599294093-30758-1-git-send-email-pthombar@cadence.com> (raw)
PAE bit of NCFGR register, when set, pauses transmission
if a non-zero 802.3 classic pause frame is received.
Fixes: 7897b071ac3b ("net: macb: convert to phylink")
Signed-off-by: Parshuram Thombare <pthombar@cadence.com>
---
drivers/net/ethernet/cadence/macb_main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 6761f40..9179f7b 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -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);
--
1.7.1
next reply other threads:[~2020-09-05 8:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-05 8:21 Parshuram Thombare [this message]
2020-09-06 19:04 ` Jakub Kicinski
2020-09-07 7:14 ` Nicolas Ferre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1599294093-30758-1-git-send-email-pthombar@cadence.com \
--to=pthombar@cadence.com \
--cc=alexandre.belloni@bootlin.com \
--cc=antoine.tenart@bootlin.com \
--cc=claudiu.beznea@microchip.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mparab@cadence.com \
--cc=netdev@vger.kernel.org \
--cc=nicolas.ferre@microchip.com \
--subject='Re: [PATCH net] net: macb: fix for pause frame receive enable bit' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).