Skip to contentSkip to conversation

net: mvpp2: Remove Pause and Asym_Pause support

PATCH In review [email protected] 4 participants 5 messages Jan 10, 2021 – Jan 12, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: mvpp2: Remove Pause and Asym_Pause support

From: Stefan Chulski <[email protected]>

Packet Processor hardware not connected to MAC flow control unit and cannot support TX flow control.
This patch disable flow control support.

Fixes 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -2
index 82c6bef..d04171d 100644
@@ -5861,8 +5861,6 @@ static void mvpp2_phylink_validate(struct phylink_config *config,
 
 	phylink_set(mask, Autoneg);
 	phylink_set_port_modes(mask);
-	phylink_set(mask, Pause);
-	phylink_set(mask, Asym_Pause);
 
 	switch (state->interface) {
 	case PHY_INTERFACE_MODE_10GBASER:
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw

niedz., 10 sty 2021 o 20:25 <[email protected]> napisał(a):

Quoted 27 lines

From: Stefan Chulski <[email protected]>

Packet Processor hardware not connected to MAC flow control unit and cannot support TX flow control.
This patch disable flow control support.

Fixes 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +0 -3
index 82c6bef..d04171d 100644
@@ -5861,8 +5861,6 @@ static void mvpp2_phylink_validate(struct phylink_config *config,
 
        phylink_set(mask, Autoneg);
        phylink_set_port_modes(mask);
-       phylink_set(mask, Pause);
-       phylink_set(mask, Asym_Pause);
 
        switch (state->interface) {
        case PHY_INTERFACE_MODE_10GBASER:
--
Quoted 2 lines

1.9.1

Thanks!

maintainer
#2 lore raw
In reply to [email protected]
Quoted 8 lines · On Sun, 10 Jan 2021 21:23:02 +0200 [email protected] wrote:

From: Stefan Chulski <[email protected]>

Packet Processor hardware not connected to MAC flow control unit and cannot support TX flow control.
This patch disable flow control support.

Fixes 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")

I'm probably missing something, but why not 4bb043262878 ("net: mvpp2:
phylink support")?

#3 lore raw
Quoted 7 lines · Jakub Kicinski
Quoted 6 lines · On Sun, 10 Jan 2021 21:23:02 +0200 [email protected] wrote:

From: Stefan Chulski <[email protected]>

Packet Processor hardware not connected to MAC flow control unit and cannot support TX flow control.
This patch disable flow control support.

Quoted 5 lines
Quoted 2 lines
Fixes 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")

I'm probably missing something, but why not 4bb043262878 ("net: mvpp2:
phylink support")?

Hi Jakub

Before that change, it used phylib. The same is true with phylib, you need to tell phylib it should not advertise pause. How you do it is different, but the basic issue is the same. Anybody doing a backport past 4bb043262878is going to need a different fix, but the basic issue is there all the way back to when the driver was added.

Andrew

maintainer
#4 lore raw
Quoted 14 lines · On Tue, 12 Jan 2021 01:47:27 +0100 Andrew Lunn wrote:
Quoted 7 lines · Jakub Kicinski
Quoted 6 lines · On Sun, 10 Jan 2021 21:23:02 +0200 [email protected] wrote:

From: Stefan Chulski <[email protected]>

Packet Processor hardware not connected to MAC flow control unit and cannot support TX flow control.
This patch disable flow control support.

Quoted 5 lines
Quoted 2 lines
Fixes 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")

I'm probably missing something, but why not 4bb043262878 ("net: mvpp2:
phylink support")?

Quoted 7 lines

Hi Jakub

Before that change, it used phylib. The same is true with phylib, you need to tell phylib it should not advertise pause. How you do it is different, but the basic issue is the same. Anybody doing a backport past 4bb043262878is going to need a different fix, but the basic issue is there all the way back to when the driver was added.

Thanks for confirming, I didn't see any code being removed which would tell phylib pause is supported, so I wanted to make sure phylib defaults to on / gets it from some register.

Applied now, thanks!