Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300788
b: refs/heads/master
c: d387b42
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu committed Apr 17, 2012
1 parent d2bd749 commit 0f32986
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 851e60221926a53344b4227879858bef841b0477
refs/heads/master: d387b427c973974dd619a33549c070ac5d0e089f
6 changes: 6 additions & 0 deletions trunk/drivers/net/ethernet/realtek/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ enum rtl_registers {
Config0 = 0x51,
Config1 = 0x52,
Config2 = 0x53,
#define PME_SIGNAL (1 << 5) /* 8168c and later */

Config3 = 0x54,
Config4 = 0x55,
Config5 = 0x56,
Expand Down Expand Up @@ -1422,6 +1424,10 @@ static void __rtl8169_set_wol(struct rtl8169_private *tp, u32 wolopts)
RTL_W8(Config1, options);
break;
default:
options = RTL_R8(Config2) & ~PME_SIGNAL;
if (wolopts)
options |= PME_SIGNAL;
RTL_W8(Config2, options);
break;
}

Expand Down

0 comments on commit 0f32986

Please sign in to comment.