Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351503
b: refs/heads/master
c: 4fbc5b2
h: refs/heads/master
i:
  351501: 65402ae
  351499: c570bd1
  351495: dc99e2f
  351487: 2145518
v: v3
  • Loading branch information
Ming Lei authored and David S. Miller committed Jan 21, 2013
1 parent 23d80aa commit 2bcb9a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 546bfedbe604baeb5a03736593bb95c9aa56bcfa
refs/heads/master: 4fbc5b20e2715997a1b5e634543e8cac9aa36d4c
8 changes: 7 additions & 1 deletion trunk/drivers/net/usb/pegasus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,7 @@ pegasus_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
{
pegasus_t *pegasus = netdev_priv(dev);
u8 reg78 = 0x04;
int ret;

if (wol->wolopts & ~WOL_SUPPORTED)
return -EINVAL;
Expand All @@ -1111,7 +1112,12 @@ pegasus_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
else
pegasus->eth_regs[0] &= ~0x10;
pegasus->wolopts = wol->wolopts;
return set_register(pegasus, WakeupControl, reg78);

ret = set_register(pegasus, WakeupControl, reg78);
if (!ret)
ret = device_set_wakeup_enable(&pegasus->usb->dev,
wol->wolopts);
return ret;
}

static inline void pegasus_reset_wol(struct net_device *dev)
Expand Down

0 comments on commit 2bcb9a8

Please sign in to comment.