mwifiex: fix PCIe hs_cfg cancel cmd timeout
commit3ebf6d7dae94cd4a92cf23d428bc9f196835e6f2
authorBing Zhao <bzhao@marvell.com>
Sat, 21 Sep 2013 02:56:45 +0000 (20 19:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 01:14:30 +0000 (13 18:14 -0700)
treeb4564ae99e8ce996c4e5bb220d11dbe20bd30ab6
parenteaac40050d90a35e97cf965529de4c5ef127d0d4
mwifiex: fix PCIe hs_cfg cancel cmd timeout

commit b7be1522def9a9988b67afd0be999c50a96394b5 upstream.

For pcie8897, the hs_cfg cancel command (0xe5) times out when host
comes out of suspend. This is caused by an incompleted host sleep
handshake between driver and firmware.

Like SDIO interface, PCIe also needs to go through firmware power
save events to complete the handshake for host sleep configuration.
Only USB interface doesn't require power save events for hs_cfg.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/cmdevt.c