netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/3] r8169: fix WOL setting for 8105 and 8111EVL
@ 2011-08-31 16:17 Hayes Wang
  2011-08-31 16:17 ` [PATCH net-next 2/3] r8169: fix the reset setting for 8111evl Hayes Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hayes Wang @ 2011-08-31 16:17 UTC (permalink / raw)
  To: romieu; +Cc: netdev, linux-kernel, Hayes Wang

8105, 8111E, and 8111EVL need enable RxConfig bit 1 ~ 3 for supporting
wake on lan.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
---
 drivers/net/ethernet/realtek/r8169.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 1cf8c3c..96e003a 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -3416,8 +3416,11 @@ static void r8168_pll_power_down(struct rtl8169_private *tp)
 		rtl_writephy(tp, 0x1f, 0x0000);
 		rtl_writephy(tp, MII_BMCR, 0x0000);
 
-		if (tp->mac_version == RTL_GIGA_MAC_VER_32 ||
-		    tp->mac_version == RTL_GIGA_MAC_VER_33)
+		if (tp->mac_version == RTL_GIGA_MAC_VER_29 ||
+		    tp->mac_version == RTL_GIGA_MAC_VER_30 ||
+		    tp->mac_version == RTL_GIGA_MAC_VER_32 ||
+		    tp->mac_version == RTL_GIGA_MAC_VER_33 ||
+		    tp->mac_version == RTL_GIGA_MAC_VER_34)
 			RTL_W32(RxConfig, RTL_R32(RxConfig) | AcceptBroadcast |
 				AcceptMulticast | AcceptMyPhys);
 		return;
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-09-01  6:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-31 16:17 [PATCH net-next 1/3] r8169: fix WOL setting for 8105 and 8111EVL Hayes Wang
2011-08-31 16:17 ` [PATCH net-next 2/3] r8169: fix the reset setting for 8111evl Hayes Wang
2011-08-31 16:17 ` [PATCH net-next 3/3] r8169: support new chips of RTL8111F Hayes Wang
2011-08-31 19:13   ` Francois Romieu
2011-09-01  6:02     ` hayeswang
2011-08-31 19:13 ` [PATCH net-next 1/3] r8169: fix WOL setting for 8105 and 8111EVL Francois Romieu
2011-09-01  6:02   ` hayeswang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).