* [PATCH net-next] net: dsa: felix: set TX flow control according to the phylink_mac_link_up resolution
@ 2021-06-08 11:16 Vladimir Oltean
2021-06-08 23:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Oltean @ 2021-06-08 11:16 UTC (permalink / raw)
To: Jakub Kicinski, David S. Miller, netdev
Cc: Florian Fainelli, Andrew Lunn, Vivien Didelot, Michael Walle,
Heiner Kallweit, Russell King, Claudiu Manoil, Alexandre Belloni,
UNGLinuxDriver, Vladimir Oltean
From: Vladimir Oltean <vladimir.oltean@nxp.com>
Instead of relying on the static initialization done by ocelot_init_port()
which enables flow control unconditionally, set SYS_PAUSE_CFG_PAUSE_ENA
according to the parameters negotiated by the PHY.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
drivers/net/dsa/ocelot/felix.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c
index ce607fbaaa3a..a2a15919b960 100644
--- a/drivers/net/dsa/ocelot/felix.c
+++ b/drivers/net/dsa/ocelot/felix.c
@@ -940,6 +940,8 @@ static void felix_phylink_mac_link_up(struct dsa_switch *ds, int port,
ocelot_write_rix(ocelot, 0, ANA_POL_FLOWC, port);
+ ocelot_fields_write(ocelot, port, SYS_PAUSE_CFG_PAUSE_ENA, tx_pause);
+
/* Undo the effects of felix_phylink_mac_link_down:
* enable MAC module
*/
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: dsa: felix: set TX flow control according to the phylink_mac_link_up resolution
2021-06-08 11:16 [PATCH net-next] net: dsa: felix: set TX flow control according to the phylink_mac_link_up resolution Vladimir Oltean
@ 2021-06-08 23:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-08 23:40 UTC (permalink / raw)
To: Vladimir Oltean
Cc: kuba, davem, netdev, f.fainelli, andrew, vivien.didelot, michael,
hkallweit1, linux, claudiu.manoil, alexandre.belloni,
UNGLinuxDriver, vladimir.oltean
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Tue, 8 Jun 2021 14:16:51 +0300 you wrote:
> From: Vladimir Oltean <vladimir.oltean@nxp.com>
>
> Instead of relying on the static initialization done by ocelot_init_port()
> which enables flow control unconditionally, set SYS_PAUSE_CFG_PAUSE_ENA
> according to the parameters negotiated by the PHY.
>
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
>
> [...]
Here is the summary with links:
- [net-next] net: dsa: felix: set TX flow control according to the phylink_mac_link_up resolution
https://git.kernel.org/netdev/net-next/c/de274be32cb2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-08 23:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 11:16 [PATCH net-next] net: dsa: felix: set TX flow control according to the phylink_mac_link_up resolution Vladimir Oltean
2021-06-08 23:40 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.