OSDN Git Service

wil6210: prevent parallel suspend and dump collection
authorMaya Erez <qca_merez@qca.qualcomm.com>
Thu, 14 Dec 2017 16:53:09 +0000 (18:53 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 9 Jan 2018 08:03:27 +0000 (10:03 +0200)
commita8fd16d7a14fad9a7ecaa0932eefd243f62394b9
tree2d090d3d7e030218d97f4b7573ceef798eeb2c59
parent594b59ec70e14f9cdb901f9e2c7c6a771c6231fa
wil6210: prevent parallel suspend and dump collection

Suspend and crash dump operations can happen simultaneously
in case there is a FW assert during the suspend procedure
or when SSR calls all the devices crashdump callbacks.

To prevent that, a new flag is added, indicating that the
dumps collection is in progress, in order to allow the
suspend/reset decline if the dumps collection already started.

Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/pm.c
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wil_crash_dump.c