Message ID | 20231031122005.13368-1-rwahl@gmx.de (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: ethernet: ti: am65-cpsw: rx_pause/tx_pause controls wrong direction | expand |
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
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);