]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.drivers/atl1-add-device_set_wakeup_enable-to-atl1-_set_wol.patch
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / atl1-add-device_set_wakeup_enable-to-atl1-_set_wol.patch
CommitLineData
2cb7cef9
BS
1From: Brandon Philips <brandon@ifup.org>
2Subject: [PATCH] atl1e: add device_set_wakeup_enable to atl1e_set_wol
3References: bnc#493214
4
5Tell PCI core that atl1e can wakeup the system when WOL is
6enabled by calling device_set_wakeup_enable.
7
8Joerg noted that his atl1e device WOL fine after enabling it with
9ethtool and changing /sys/class/net/eth0/device/power/wakeup to enabled
10Tested on atl1e: https://bugzilla.novell.com/show_bug.cgi?id=493214
11
12Tested by: Joerg Reuter <jreuter@novell.com>
13Signed-off-by: Brandon Philips <bphilips@suse.de>
14
15---
16 drivers/net/atl1e/atl1e_ethtool.c | 2 ++
17 1 file changed, 2 insertions(+)
18
19Index: 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