[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1392999602-29873-1-git-send-email-cristian.bercaru@freescale.com>
Date: Fri, 21 Feb 2014 18:20:02 +0200
From: <cristian.bercaru@...escale.com>
To: <netdev@...r.kernel.org>
CC: Cristian Bercaru <cristian.bercaru@...escale.com>,
<madalin.bucur@...escale.com>, <shaohui.xie@...escale.com>,
<shruti@...escale.com>
Subject: [PATCH] net: phy: realtek: advertise PAUSE frame capabilities on Realtek PHY drivers
From: Cristian Bercaru <cristian.bercaru@...escale.com>
Enable the advertisment of symmetric and asymmetric PAUSE frame
capabilities on all Realtek PHY drivers.
Signed-off-by: Cristian Bercaru <cristian.bercaru@...escale.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists