]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Brandon Philips <brandon@ifup.org> |
2 | Subject: [PATCH] atl1e: add device_set_wakeup_enable to atl1e_set_wol | |
3 | References: bnc#493214 | |
4 | ||
5 | Tell PCI core that atl1e can wakeup the system when WOL is | |
6 | enabled by calling device_set_wakeup_enable. | |
7 | ||
8 | Joerg noted that his atl1e device WOL fine after enabling it with | |
9 | ethtool and changing /sys/class/net/eth0/device/power/wakeup to enabled | |
10 | Tested on atl1e: https://bugzilla.novell.com/show_bug.cgi?id=493214 | |
11 | ||
12 | Tested by: Joerg Reuter <jreuter@novell.com> | |
13 | Signed-off-by: Brandon Philips <bphilips@suse.de> | |
14 | ||
15 | --- | |
16 | drivers/net/atl1e/atl1e_ethtool.c | 2 ++ | |
17 | 1 file changed, 2 insertions(+) | |
18 | ||
19 | Index: linux-2.6.27-SLE11_BRANCH/drivers/net/atl1e/atl1e_ethtool.c | |
20 | =================================================================== | |
21 | --- linux-2.6.27-SLE11_BRANCH.orig/drivers/net/atl1e/atl1e_ethtool.c | |
22 | +++ linux-2.6.27-SLE11_BRANCH/drivers/net/atl1e/atl1e_ethtool.c | |
23 | @@ -365,6 +365,8 @@ static int atl1e_set_wol(struct net_devi | |
24 | if (wol->wolopts & WAKE_PHY) | |
25 | adapter->wol |= AT_WUFC_LNKC; | |
26 | ||
27 | + device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); | |
28 | + | |
29 | return 0; | |
30 | } | |
31 |