All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libertas: don't block usb8388 suspend if no wakeup conditions are set
@ 2010-10-31 13:40 Daniel Drake
  2010-11-12 23:29 ` Dan Williams
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Drake @ 2010-10-31 13:40 UTC (permalink / raw)
  To: linville; +Cc: dcbw, linux-wireless, libertas-dev, akarwar

This hunk added by commit 66fceb69b72f seems erroneous. We don't want to
prevent suspend of the whole system if no wakeup params are set.

In the case of the usb8388 we do want to keep the card powered up even
if there are no wakeup params. This is because it will continue acting
as a mesh node.

If the mesh is disabled, it would indeed make more sense to power down
the card during suspend, as the equivalent hunk does for the SD interface.
But that's a separate task; for now just restore the previous behaviour.

Signed-off-by: Daniel Drake <dsd@laptop.org>
---
 drivers/net/wireless/libertas/if_usb.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index efaf850..35931cf 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -1090,12 +1090,6 @@ static int if_usb_suspend(struct usb_interface *intf, pm_message_t message)
 	if (priv->psstate != PS_STATE_FULL_POWER)
 		return -1;
 
-	if (priv->wol_criteria == EHS_REMOVE_WAKEUP) {
-		lbs_pr_info("Suspend attempt without "
-						"configuring wake params!\n");
-		return -ENOSYS;
-	}
-
 	ret = lbs_suspend(priv);
 	if (ret)
 		goto out;
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] libertas: don't block usb8388 suspend if no wakeup conditions are set
  2010-10-31 13:40 [PATCH] libertas: don't block usb8388 suspend if no wakeup conditions are set Daniel Drake
@ 2010-11-12 23:29 ` Dan Williams
  2010-11-18 20:15   ` Daniel Drake
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Williams @ 2010-11-12 23:29 UTC (permalink / raw)
  To: Daniel Drake; +Cc: linville, linux-wireless, libertas-dev, akarwar

On Sun, 2010-10-31 at 13:40 +0000, Daniel Drake wrote:
> This hunk added by commit 66fceb69b72f seems erroneous. We don't want to
> prevent suspend of the whole system if no wakeup params are set.
> 
> In the case of the usb8388 we do want to keep the card powered up even
> if there are no wakeup params. This is because it will continue acting
> as a mesh node.
> 
> If the mesh is disabled, it would indeed make more sense to power down
> the card during suspend, as the equivalent hunk does for the SD interface.
> But that's a separate task; for now just restore the previous behaviour.
> 
> Signed-off-by: Daniel Drake <dsd@laptop.org>

Acked-by: Dan Williams <dcbw@redhat.com>

> ---
>  drivers/net/wireless/libertas/if_usb.c |    6 ------
>  1 files changed, 0 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
> index efaf850..35931cf 100644
> --- a/drivers/net/wireless/libertas/if_usb.c
> +++ b/drivers/net/wireless/libertas/if_usb.c
> @@ -1090,12 +1090,6 @@ static int if_usb_suspend(struct usb_interface *intf, pm_message_t message)
>  	if (priv->psstate != PS_STATE_FULL_POWER)
>  		return -1;
>  
> -	if (priv->wol_criteria == EHS_REMOVE_WAKEUP) {
> -		lbs_pr_info("Suspend attempt without "
> -						"configuring wake params!\n");
> -		return -ENOSYS;
> -	}
> -
>  	ret = lbs_suspend(priv);
>  	if (ret)
>  		goto out;



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] libertas: don't block usb8388 suspend if no wakeup conditions are set
  2010-11-12 23:29 ` Dan Williams
@ 2010-11-18 20:15   ` Daniel Drake
  2010-11-18 20:40     ` John W. Linville
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Drake @ 2010-11-18 20:15 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, libertas-dev, akarwar, Dan Williams

John, just a quick ping on this maintainer-acked patch
Thanks :)

On 12 November 2010 23:29, Dan Williams <dcbw@redhat.com> wrote:
> On Sun, 2010-10-31 at 13:40 +0000, Daniel Drake wrote:
>> This hunk added by commit 66fceb69b72f seems erroneous. We don't want to
>> prevent suspend of the whole system if no wakeup params are set.
>>
>> In the case of the usb8388 we do want to keep the card powered up even
>> if there are no wakeup params. This is because it will continue acting
>> as a mesh node.
>>
>> If the mesh is disabled, it would indeed make more sense to power down
>> the card during suspend, as the equivalent hunk does for the SD interface.
>> But that's a separate task; for now just restore the previous behaviour.
>>
>> Signed-off-by: Daniel Drake <dsd@laptop.org>
>
> Acked-by: Dan Williams <dcbw@redhat.com>
>
>> ---
>>  drivers/net/wireless/libertas/if_usb.c |    6 ------
>>  1 files changed, 0 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
>> index efaf850..35931cf 100644
>> --- a/drivers/net/wireless/libertas/if_usb.c
>> +++ b/drivers/net/wireless/libertas/if_usb.c
>> @@ -1090,12 +1090,6 @@ static int if_usb_suspend(struct usb_interface *intf, pm_message_t message)
>>       if (priv->psstate != PS_STATE_FULL_POWER)
>>               return -1;
>>
>> -     if (priv->wol_criteria == EHS_REMOVE_WAKEUP) {
>> -             lbs_pr_info("Suspend attempt without "
>> -                                             "configuring wake params!\n");
>> -             return -ENOSYS;
>> -     }
>> -
>>       ret = lbs_suspend(priv);
>>       if (ret)
>>               goto out;
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] libertas: don't block usb8388 suspend if no wakeup conditions are set
  2010-11-18 20:15   ` Daniel Drake
@ 2010-11-18 20:40     ` John W. Linville
  2010-11-18 20:53       ` Daniel Drake
  0 siblings, 1 reply; 5+ messages in thread
From: John W. Linville @ 2010-11-18 20:40 UTC (permalink / raw)
  To: Daniel Drake; +Cc: linux-wireless, libertas-dev, akarwar, Dan Williams

On Thu, Nov 18, 2010 at 08:15:55PM +0000, Daniel Drake wrote:
> John, just a quick ping on this maintainer-acked patch
> Thanks :)

I have it in wireless-next-2.6.  Do you think it needs to be in 2.6.37?

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] libertas: don't block usb8388 suspend if no wakeup conditions are set
  2010-11-18 20:40     ` John W. Linville
@ 2010-11-18 20:53       ` Daniel Drake
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Drake @ 2010-11-18 20:53 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, libertas-dev, akarwar, Dan Williams

On 18 November 2010 20:40, John W. Linville <linville@tuxdriver.com> wrote:
> On Thu, Nov 18, 2010 at 08:15:55PM +0000, Daniel Drake wrote:
>> John, just a quick ping on this maintainer-acked patch
>> Thanks :)
>
> I have it in wireless-next-2.6.  Do you think it needs to be in 2.6.37?

Sorry about that. Must have missed it!
linux-next is good enough.

Thanks
Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-18 20:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-31 13:40 [PATCH] libertas: don't block usb8388 suspend if no wakeup conditions are set Daniel Drake
2010-11-12 23:29 ` Dan Williams
2010-11-18 20:15   ` Daniel Drake
2010-11-18 20:40     ` John W. Linville
2010-11-18 20:53       ` Daniel Drake

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.