* [PATCH] net: ethernet: ti: am65-cpsw: rx_pause/tx_pause controls wrong direction
@ 2023-10-31 12:20 Ronald Wahl
2023-11-04 16:10 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Ronald Wahl @ 2023-10-31 12:20 UTC (permalink / raw)
To: linux-kernel, netdev
Cc: Grygorii Strashko, Dan Carpenter, Siddharth Vadapalli,
Jakub Kicinski, David S . Miller, Roger Quadros, Ronald Wahl
From: Ronald Wahl <ronald.wahl@raritan.com>
The rx_pause flag says that whether we support receiving Pause frames.
When a Pause frame is received TX is delayed for some time. This is TX
flow control. In the same manner tx_pause is actually RX flow control.
Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
---
drivers/net/ethernet/ti/am65-cpsw-nuss.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
index 24120605502f..ece9f8df98ae 100644
--- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
@@ -1588,10 +1588,10 @@ static void am65_cpsw_nuss_mac_link_up(struct phylink_config *config, struct phy
/* rx_pause/tx_pause */
if (rx_pause)
- mac_control |= CPSW_SL_CTL_RX_FLOW_EN;
+ mac_control |= CPSW_SL_CTL_TX_FLOW_EN;
if (tx_pause)
- mac_control |= CPSW_SL_CTL_TX_FLOW_EN;
+ mac_control |= CPSW_SL_CTL_RX_FLOW_EN;
cpsw_sl_ctl_set(port->slave.mac_sl, mac_control);
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: ethernet: ti: am65-cpsw: rx_pause/tx_pause controls wrong direction
2023-10-31 12:20 [PATCH] net: ethernet: ti: am65-cpsw: rx_pause/tx_pause controls wrong direction Ronald Wahl
@ 2023-11-04 16:10 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2023-11-04 16:10 UTC (permalink / raw)
To: Ronald Wahl
Cc: linux-kernel, netdev, Grygorii Strashko, Dan Carpenter,
Siddharth Vadapalli, Jakub Kicinski, David S . Miller,
Roger Quadros, Ronald Wahl
On Tue, Oct 31, 2023 at 01:20:05PM +0100, Ronald Wahl wrote:
> From: Ronald Wahl <ronald.wahl@raritan.com>
>
> The rx_pause flag says that whether we support receiving Pause frames.
> When a Pause frame is received TX is delayed for some time. This is TX
> flow control. In the same manner tx_pause is actually RX flow control.
>
> Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
Hi Ronald,
I am a little unclear if this patch addresses a user-visible bug, or
is adding a new feature.
If it is fixing a bug then it should be targeted at the net tree.
It should apply cleanly there, and the tree should be noted in the subject.
Subject: [PATCH net] net: ethernet: ...
Also, if it is a bug fix, it should have a fixes tag, indicating the
revision(s) where the problem was introduced. This to assist in backporting
fixes. In this case perhaps the following is appropriate:
Fixes: e8609e69470f ("net: ethernet: ti: am65-cpsw: Convert to PHYLINK")
It is probably not necessary to repost to address the above.
But please keep it in mind for future Networking patches.
On the other hand, if this is a new feature, then it should be targeted
at net-next:
Subject: [PATCH net-next] net: ethernet: ...
And in that case the following applies.
## Form letter - net-next-closed
The merge window for v6.7 has begun and therefore net-next is closed
for new drivers, features, code refactoring and optimizations.
We are currently accepting bug fixes only.
Please repost when net-next reopens after November 12th.
RFC patches sent for review only are obviously welcome at any time.
See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-04 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31 12:20 [PATCH] net: ethernet: ti: am65-cpsw: rx_pause/tx_pause controls wrong direction Ronald Wahl
2023-11-04 16:10 ` Simon Horman
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).