Netdev List
 help / color / mirror / Atom feed
From: Corcodel Marian <asd@marian1000.go.ro>
To: netdev@vger.kernel.org
Cc: Francois Romieu <romieu@fr.zoreil.com>,
	Corcodel Marian <asd@marian1000.go.ro>
Subject: [PATCH 2/2 net-next v3.16]r9169:  Search for registers on set_rx_mode
Date: Sat, 26 Mar 2016 12:57:01 +0200	[thread overview]
Message-ID: <1458989821-19782-2-git-send-email-asd@marian1000.go.ro> (raw)
In-Reply-To: <1458989821-19782-1-git-send-email-asd@marian1000.go.ro>

 This patch add searching for needed registers on set_rx_mode function
 and add delay to bee ready.This is for starting on full duplex on full
 speed.

Signed-off-by: Corcodel Marian <asd@marian1000.go.ro>
---
 drivers/net/ethernet/realtek/r8169.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index f7b0dfb..0ae8969 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -4604,6 +4604,9 @@ static void rtl_set_rx_mode(struct net_device *dev)
 	int rx_mode;
 	u32 tmp = 0;
 
+	if (!(RTL_R32(MAR0) | RTL_R32(MAR0 + 4) | RTL_R32(RxConfig)))
+		return;
+
 	if (dev->flags & IFF_PROMISC) {
 		/* Unconditionally log net taps. */
 		netif_notice(tp, link, dev, "Promiscuous mode enabled\n");
-- 
2.1.4

  reply	other threads:[~2016-03-26 11:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-26 10:57 [PATCH 1/2 net-next v3.16]r8169: Disable set bit multicast enable per multicast address Corcodel Marian
2016-03-26 10:57 ` Corcodel Marian [this message]
2016-03-26 17:18 ` Eric Dumazet
2016-03-27 16:31   ` Corcodel Marian
2016-03-29 12:59     ` Eric Dumazet

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=1458989821-19782-2-git-send-email-asd@marian1000.go.ro \
    --to=asd@marian1000.go.ro \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox