[PATCH net-next 1/9] net: dsa: vsc73xx: fix phylink capabilities
From: Pawel Dembicki
Date: Mon Jul 29 2024 - 17:06:47 EST
According datasheet, VSC73XX family switches supports symmetric and
asymmetric pause and 1000BASE in FD only.
This patch fix it.
Fixes: a026809c261b ("net: dsa: vsc73xx: add phylink capabilities")
Signed-off-by: Pawel Dembicki <paweldembicki@xxxxxxxxx>
---
drivers/net/dsa/vitesse-vsc73xx-core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c
index 07b704a1557e..43aeb578d608 100644
--- a/drivers/net/dsa/vitesse-vsc73xx-core.c
+++ b/drivers/net/dsa/vitesse-vsc73xx-core.c
@@ -1491,7 +1491,8 @@ static void vsc73xx_phylink_get_caps(struct dsa_switch *dsa, int port,
__set_bit(PHY_INTERFACE_MODE_GMII, interfaces);
}
- config->mac_capabilities = MAC_SYM_PAUSE | MAC_10 | MAC_100 | MAC_1000;
+ config->mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE |
+ MAC_10 | MAC_100 | MAC_1000FD;
}
static int
--
2.34.1