All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corcodel Marian <corcodel.marian@gmail.com>
To: netdev@vger.kernel.org
Cc: Corcodel Marian <corcodel.marian@gmail.com>,
	Corcodel Marian <asu@192-168-0-3.rdsnet.ro>
Subject: [net-next]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)
Date: Sat, 18 Jul 2015 13:16:04 +0300	[thread overview]
Message-ID: <1437214565-29432-1-git-send-email-corcodel.marian@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]


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

Signed-off-by: Corcodel Marian <asu@192-168-0-3.rdsnet.ro>
---
 drivers/net/ethernet/realtek/r8169.c | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Committer-Corcodel-Marian-corcodel.marian-gmail.com.patch --]
[-- Type: text/x-patch; name="0001-Committer-Corcodel-Marian-corcodel.marian-gmail.com.patch", Size: 1161 bytes --]

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 714af89..a373679 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -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;
 

                 reply	other threads:[~2015-07-18 10:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1437214565-29432-1-git-send-email-corcodel.marian@gmail.com \
    --to=corcodel.marian@gmail.com \
    --cc=asu@192-168-0-3.rdsnet.ro \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.