Commit dfb72c4f authored by Daniel Drake's avatar Daniel Drake Committed by John W. Linville
Browse files

libertas_usb: program OLPC EC wakeup mask for wake-on-WLAN

OLPC power management code has recently gone upstream. This piece
completes the puzzle for libertas_usb, which now programs the OLPC EC
for wlan wakeups when they have been requested.
Signed-off-by: default avatarDaniel Drake <>
Acked-by: default avatarDan Williams <>
Signed-off-by: default avatarJohn W. Linville <>
parent 9c204b46
......@@ -1112,6 +1112,15 @@ static int if_usb_suspend(struct usb_interface *intf, pm_message_t message)
if (priv->psstate != PS_STATE_FULL_POWER)
return -1;
if (machine_is_olpc()) {
if (priv->wol_criteria == EHS_REMOVE_WAKEUP)
ret = lbs_suspend(priv);
if (ret)
goto out;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment