* [PATCH] libertas_usb: program OLPC EC wakeup mask for wake-on-WLAN
@ 2011-07-27 16:19 Daniel Drake
2011-07-27 19:16 ` Dan Williams
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Drake @ 2011-07-27 16:19 UTC (permalink / raw)
To: linville, dcbw; +Cc: linux-wireless, libertas-dev
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: Daniel Drake <dsd@laptop.org>
---
drivers/net/wireless/libertas/if_usb.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Depends on some patches that were into Linus's tree yesterday.
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index b5acc39..8f73e80 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -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;
+#ifdef CONFIG_OLPC
+ if (machine_is_olpc()) {
+ if (priv->wol_criteria == EHS_REMOVE_WAKEUP)
+ olpc_ec_wakeup_clear(EC_SCI_SRC_WLAN);
+ else
+ olpc_ec_wakeup_set(EC_SCI_SRC_WLAN);
+ }
+#endif
+
ret = lbs_suspend(priv);
if (ret)
goto out;
--
1.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libertas_usb: program OLPC EC wakeup mask for wake-on-WLAN
2011-07-27 16:19 [PATCH] libertas_usb: program OLPC EC wakeup mask for wake-on-WLAN Daniel Drake
@ 2011-07-27 19:16 ` Dan Williams
0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2011-07-27 19:16 UTC (permalink / raw)
To: Daniel Drake; +Cc: linville, linux-wireless, libertas-dev
On Wed, 2011-07-27 at 17:19 +0100, Daniel Drake wrote:
> 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: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
> ---
> drivers/net/wireless/libertas/if_usb.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> Depends on some patches that were into Linus's tree yesterday.
>
> diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
> index b5acc39..8f73e80 100644
> --- a/drivers/net/wireless/libertas/if_usb.c
> +++ b/drivers/net/wireless/libertas/if_usb.c
> @@ -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;
>
> +#ifdef CONFIG_OLPC
> + if (machine_is_olpc()) {
> + if (priv->wol_criteria == EHS_REMOVE_WAKEUP)
> + olpc_ec_wakeup_clear(EC_SCI_SRC_WLAN);
> + else
> + olpc_ec_wakeup_set(EC_SCI_SRC_WLAN);
> + }
> +#endif
> +
> ret = lbs_suspend(priv);
> if (ret)
> goto out;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-27 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-27 16:19 [PATCH] libertas_usb: program OLPC EC wakeup mask for wake-on-WLAN Daniel Drake
2011-07-27 19:16 ` Dan Williams
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.