]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb881ee5178b3506bb285762dee4f2451ca5438ab
tree03d6a5da986f9db30386c70bf41898425a6f7672
parentcd18fce2d942305a53f6938c3b51d87da3b1a969
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