mwifiex: fix power state out of sync problem
authorShengzhen Li <szli@marvell.com>
Tue, 12 Jan 2016 13:43:16 +0000 (05:43 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Jan 2016 09:18:22 +0000 (11:18 +0200)
commitdc896b15fe94345912ff13fa8eb581b5c6acccde
treec9cfeefc63deb64e137fff7a986fdad8620160a1
parent99074fc1e67b374b5c72406a23ac01fed806d634
mwifiex: fix power state out of sync problem

It's been observed that driver's power state goes out
of sync with firmware in some corner cases. When this
happens, driver tries to download the data to firmware
assuming it's awake which causes Tx data timeout.

Main thread will process interrupt as soon as interrupt
handler fills 'int_status' variable.

This patch fixes the race issue by updating 'int_status'
at the end of mwifiex_interrupt_status().

Signed-off-by: Shengzhen Li <szli@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c