mwifiex: fix cmd and Tx data timeout issue for PCIe cards
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 18 Feb 2014 23:41:56 +0000 (15:41 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Feb 2014 20:53:20 +0000 (15:53 -0500)
commit1c97560f6d751a620978504a4a888c631192b71a
tree2328ab62cbd9d62316a1b27bef3455835ccc6884
parentbb8e6a1ee881d131e404f0f1f5e8dc9281002771
mwifiex: fix cmd and Tx data timeout issue for PCIe cards

We are sending sleep confirm done interrupt in the middle of
sleep handshake. There is a corner case when Tx done interrupt
is received from firmware during sleep handshake due to which
host and firmware power states go out of sync causing cmd and
Tx data timeout problem.

Hence sleep confirm done interrupt is sent at the end of sleep
handshake to fix the problem.

Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Amitkumar Karwar <akarwar@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