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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Mar 2014 04:38:13 +0000 (21:38 -0700)
commit02395fb0f850f04631988ddf532dc74f538d35de
treebca50304bd40056af2aa86c05bd6d3b2f74d4bf6
parentef8f92b153230230d437e32573c0560bae9a8f13
mwifiex: fix cmd and Tx data timeout issue for PCIe cards

commit 1c97560f6d751a620978504a4a888c631192b71a upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/pcie.c