[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1455628796-1750-1-git-send-email-asd@marian1000.go.ro>
Date: Tue, 16 Feb 2016 15:19:56 +0200
From: Corcodel Marian <asd@...ian1000.go.ro>
To: netdev@...r.kernel.org
Cc: Corcodel Marian <asd@...ian1000.go.ro>
Subject: [PATCH net v4]r8169: Correcting start poll() operations.
This patch enable poll operations when chip is ready.
poll op. Will start after autoneg process, after transmission is started.
Signed-off-by: Corcodel Marian <asd@...ian1000.go.ro>
---
drivers/net/ethernet/realtek/r8169.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 537974c..a1fa760 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -7685,7 +7685,6 @@ static int rtl_open(struct net_device *dev)
set_bit(RTL_FLAG_TASK_ENABLED, tp->wk.flags);
- napi_enable(&tp->napi);
rtl8169_init_phy(dev, tp);
@@ -7699,7 +7698,7 @@ static int rtl_open(struct net_device *dev)
netif_warn(tp, hw, dev, "counter reset/update failed\n");
netif_start_queue(dev);
-
+ napi_enable(&tp->napi);
rtl_unlock_work(tp);
tp->saved_wolopts = 0;
--
2.1.4
Powered by blists - more mailing lists