OSDN Git Service

iwlwifi: mvm: reset PM state on unsuccessful resume
authorJohannes Berg <johannes.berg@intel.com>
Sat, 16 Oct 2021 08:43:55 +0000 (11:43 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Oct 2021 09:31:23 +0000 (12:31 +0300)
commit2f629a7772e2a7bdaff25178917a40073f79702c
treec263a8cdd346390a7574086ad1de493d6c21a4ee
parent8347c80600c1b4fcb14fd626c4c50d67b758e2d4
iwlwifi: mvm: reset PM state on unsuccessful resume

If resume fails for some reason, we need to set the PM state
back to normal so we're able to send commands during firmware
reset, rather than failing all of them because we're in D3.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: 708a39aaca22 ("iwlwifi: mvm: don't send commands during suspend\resume transition")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20211016114029.7ceb9eaca9f6.If0cbef38c6d07ec1ddce125878a4bdadcb35d2c9@changeid
drivers/net/wireless/intel/iwlwifi/mvm/d3.c