DORMANTno replies

[PATCH] net: phy: realtek: advertise PAUSE frame capabilities on Realtek PHY drivers

From: <hidden>
Date: 2014-02-21 16:20:17
Subsystem: ethernet phy library, networking drivers, the rest · Maintainers: Andrew Lunn, Heiner Kallweit, Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

From: Cristian Bercaru <redacted>

Enable the advertisment of symmetric and asymmetric PAUSE frame
capabilities on all Realtek PHY drivers.

Signed-off-by: Cristian Bercaru <redacted>
---
 drivers/net/phy/realtek.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index fa1d69a..8c59960 100644
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -69,7 +69,8 @@ static struct phy_driver rtl8201cp_driver = {
 	.phy_id         = 0x00008201,
 	.name           = "RTL8201CP Ethernet",
 	.phy_id_mask    = 0x0000ffff,
-	.features       = PHY_BASIC_FEATURES,
+	.features       = PHY_BASIC_FEATURES |
+			SUPPORTED_Pause | SUPPORTED_Asym_Pause,
 	.flags          = PHY_HAS_INTERRUPT,
 	.config_aneg    = &genphy_config_aneg,
 	.read_status    = &genphy_read_status,
@@ -81,7 +82,8 @@ static struct phy_driver rtl8211b_driver = {
 	.phy_id		= 0x001cc912,
 	.name		= "RTL8211B Gigabit Ethernet",
 	.phy_id_mask	= 0x001fffff,
-	.features	= PHY_GBIT_FEATURES,
+	.features	= PHY_GBIT_FEATURES |
+			SUPPORTED_Pause | SUPPORTED_Asym_Pause,
 	.flags		= PHY_HAS_INTERRUPT,
 	.config_aneg	= &genphy_config_aneg,
 	.read_status	= &genphy_read_status,
@@ -95,7 +97,8 @@ static struct phy_driver rtl8211e_driver = {
 	.phy_id		= 0x001cc915,
 	.name		= "RTL8211E Gigabit Ethernet",
 	.phy_id_mask	= 0x001fffff,
-	.features	= PHY_GBIT_FEATURES,
+	.features	= PHY_GBIT_FEATURES |
+			SUPPORTED_Pause | SUPPORTED_Asym_Pause,
 	.flags		= PHY_HAS_INTERRUPT,
 	.config_aneg	= &genphy_config_aneg,
 	.read_status	= &genphy_read_status,
-- 
1.7.11.7
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help