net: ethernet: ti: am65-cpsw: rx_pause/tx_pause controls wrong direction
Subsystems (2)
PATCH 1/1 net: ethernet: ti: am65-cpsw: rx_pause/tx_pause controls wrong direction
From: Ronald Wahl <[email protected]>
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.
--- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/ti/am65-cpsw-nuss.c +2 -2
@@ -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
Simon Horman
reviewerQuoted 7 lines · Ronald Wahl
From: Ronald Wahl <[email protected]>
The
rx_pauseflag 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 mannertx_pauseis actually RX flow control.Signed-off-by Ronald Wahl <[email protected]>
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:
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