OSDN Git Service

wil6210: fix wil->platform_ops.suspend failure handling
authorMaya Erez <merez@codeaurora.org>
Sun, 28 May 2017 07:21:47 +0000 (10:21 +0300)
committerMaya Erez <merez@codeaurora.org>
Sun, 28 May 2017 07:45:19 +0000 (10:45 +0300)
commit60c1eb0d65f42481d99fa891ee80a8b3209c6702
tree45637af4fc634959f307f30acc6dbee2e1e78641
parentd07260bed5e0fb3479434c0d1095f59db7ad3414
wil6210: fix wil->platform_ops.suspend failure handling

Current handling of wil->platform_ops.suspend can lead to
bad cases, as wil_status_suspending was cleared before
wil_status_resuming was set and bus request voting was restored
too late.
In addition, bus voting in suspend should be done only at the end
of he suspend flow.

Change-Id: I8856d393c1796a2bd8fd5e07b233a5d61efc80c0
Signed-off-by: Maya Erez <merez@codeaurora.org>
drivers/net/wireless/ath/wil6210/pm.c