diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2009-09-30 23:04:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:43 -0400 |
commit | 4912545472d71e3dd546b18b397aec4c89fd7403 (patch) | |
tree | b7b0d520cdbee35303caf69881f7898e38966bc7 /drivers/net/wireless/libertas/cmdresp.c | |
parent | 125b181aec7a67c71234284ecf6d9c729d05deda (diff) |
libertas: Add auto deep sleep support for SD8385/SD8686/SD8688
Add timer based auto deep sleep feature in libertas driver which can be
configured using iwconfig command. This is tested on SD8688, SD8686 cards
with firmware versions 10.38.1.p25, 9.70.4.p0 respectively on 32-bit and 64-bit
platforms. Tests have been done for USB/CS cards to make sure that the patch
won't break USB/CS code. We didn't test the if_spi driver.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index c42d3faa2660..47d2b1909d69 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -504,9 +504,21 @@ int lbs_process_event(struct lbs_private *priv, u32 event) | |||
504 | 504 | ||
505 | case MACREG_INT_CODE_HOST_AWAKE: | 505 | case MACREG_INT_CODE_HOST_AWAKE: |
506 | lbs_deb_cmd("EVENT: host awake\n"); | 506 | lbs_deb_cmd("EVENT: host awake\n"); |
507 | if (priv->reset_deep_sleep_wakeup) | ||
508 | priv->reset_deep_sleep_wakeup(priv); | ||
509 | priv->is_deep_sleep = 0; | ||
507 | lbs_send_confirmwake(priv); | 510 | lbs_send_confirmwake(priv); |
508 | break; | 511 | break; |
509 | 512 | ||
513 | case MACREG_INT_CODE_DEEP_SLEEP_AWAKE: | ||
514 | if (priv->reset_deep_sleep_wakeup) | ||
515 | priv->reset_deep_sleep_wakeup(priv); | ||
516 | lbs_deb_cmd("EVENT: ds awake\n"); | ||
517 | priv->is_deep_sleep = 0; | ||
518 | priv->wakeup_dev_required = 0; | ||
519 | wake_up_interruptible(&priv->ds_awake_q); | ||
520 | break; | ||
521 | |||
510 | case MACREG_INT_CODE_PS_AWAKE: | 522 | case MACREG_INT_CODE_PS_AWAKE: |
511 | lbs_deb_cmd("EVENT: ps awake\n"); | 523 | lbs_deb_cmd("EVENT: ps awake\n"); |
512 | /* handle unexpected PS AWAKE event */ | 524 | /* handle unexpected PS AWAKE event */ |