Skip to contentSkip to conversation

r8169: Disable advertise full duplex on chip RTL_GIGA_MAC_VER_09. Disable advertise full duplex on chip id RTL_GIGA_MAC_VER_09 wich support random full duplex.(very sad) On branch master Your branch is ahead of 'origin/master' by 18 commits. (use "git push" to publish your local commits)

net-next Corcodel Marian 1 participant 1 message Jul 18, 2015

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

Changes to be committed:
modified: drivers/net/ethernet/realtek/r8169.c

---
 drivers/net/ethernet/realtek/r8169.c | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)
drivers/net/ethernet/realtek/r8169.c +15 -4
index 714af89..a373679 100644
@@ -1918,12 +1918,23 @@ static int rtl8169_set_speed_xmi(struct net_device *dev,
 
 		if (adv & ADVERTISED_10baseT_Half)
 			auto_nego |= ADVERTISE_10HALF;
-		if (adv & ADVERTISED_10baseT_Full)
-			auto_nego |= ADVERTISE_10FULL;
+		if (!tp->mac_version == RTL_GIGA_MAC_VER_09) {
+		 if (adv & ADVERTISED_10baseT_Full)
+			 auto_nego |= ADVERTISE_10FULL;
+		} else {
+		   netif_info(tp, link, dev,							   	     
+		             "PHY does not support 10Mbps full duplex\n");
+		  } 
 		if (adv & ADVERTISED_100baseT_Half)
 			auto_nego |= ADVERTISE_100HALF;
-		if (adv & ADVERTISED_100baseT_Full)
-			auto_nego |= ADVERTISE_100FULL;
+		if (!tp->mac_version == RTL_GIGA_MAC_VER_09) {
+		 if (adv & ADVERTISED_100baseT_Full)
+			 auto_nego |= ADVERTISE_100FULL;
+	        } else {
+		   netif_info(tp, link, dev,
+		             "PHY does not support 100Mbps full duplex\n");
+	          } 
+
 
 		auto_nego |= ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM;