Eliad Peller f44e58681a wl12xx: prevent scheduling while suspending (WoW enabled)
When WoW is enabled, the interface will stay up and the chip will
be powered on, so we have to flush/cancel any remaining work, and
prevent the irq handler from scheduling a new work until the system
is resumed.

Add 2 new flags:
* WL1271_FLAG_SUSPENDED - the system is (about to be) suspended.
* WL1271_FLAG_PENDING_WORK - there is a pending irq work which
   should be scheduled when the system is being resumed.

In order to wake-up the system while getting an irq, we initialize
the device as wakeup device, and calling pm_wakeup_event() upon
getting the interrupt (while the system is about to be suspended)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
2011-05-13 14:55:49 +03:00
..
2011-03-28 07:42:58 -07:00
2011-03-29 18:19:06 +02:00
2011-03-29 14:50:42 +02:00
2011-03-22 17:43:59 -07:00
2011-03-18 17:15:11 -07:00
2011-03-22 17:43:59 -07:00
2011-03-23 14:55:56 -06:00
2011-03-29 14:48:08 +02:00
2011-03-22 17:44:17 -07:00
2011-03-29 14:48:13 +02:00
2011-03-28 19:33:04 +02:00
2011-03-29 10:01:05 -04:00