]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Re-architect suspend mode handling in ath6kl_sdio_suspend
authorRaja Mani <rmani@qca.qualcomm.com>
Mon, 30 Jan 2012 11:43:09 +0000 (17:13 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 30 Jan 2012 19:22:54 +0000 (21:22 +0200)
commitf09d05c5fee301822886a9538121c8c3d094f63c
tree2602772094fe21b94e6f38c0f2279b24da464644
parent177adadcee9b59dc3de9bd4a2bf23d676b4bd845
ath6kl: Re-architect suspend mode handling in ath6kl_sdio_suspend

Using this patch, the user can bypass existing auto
suspend mode selection logic and force ath6kl to enter
into the suspend mode what he/she wants.

If the user doesn't choose any suspend mode while doing
insmod of the driver, auto suspend mode selection logic
will kick in and choose suspend mode based on the host
SDIO controller capability.

Generic module parameter is required to specify suspend
mode including Deep Sleep and WOW while doing insmod.
Renaming existing mod param variable suspend_cutpower
would be sufficient to meet this requirement.

New module parameter suspend_mode can take any one of
the below suspend state,
   1. cut power
   2. deep sleep
   3. wow

Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/core.c
drivers/net/wireless/ath/ath6kl/core.h
drivers/net/wireless/ath/ath6kl/sdio.c