mwifiex: use fw_status register to wake up PCIe card
authorAvinash Patil <patila@marvell.com>
Sat, 23 Mar 2013 04:49:07 +0000 (21:49 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 27 Mar 2013 17:37:33 +0000 (13:37 -0400)
commitc0880a2902aacdfb387da1928fa1ba7778584339
tree03d6a5da986f9db30386c70bf41898425a6f7672
parentc24d992ab6b6f067f78585b723fa0c95b3a9c8bf
mwifiex: use fw_status register to wake up PCIe card

FW can be woken up even by accessing device registers; we need
not explicitily enable interrupts for doing this. Future PCIe
devices will not be woken up by writing to host registers.
This patch enables driver to wake up device by reading FW status
register.

Also devices with sleep cookie enabled need some more time before
proceeding with processing. Handle this by adding a delay loop.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c