wifi: iwlwifi: mvm: tell iwlmei when we finished suspending
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 28 Oct 2024 11:54:54 +0000 (13:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 7 Nov 2024 13:42:29 +0000 (14:42 +0100)
commitd1a54ec21b8e7bca59141ff1ac6ce73e07d744f2
tree0d50ab237daff6cc2b69c9051a336ebcd38a5996
parente53ebc72054efca12e0329d69342e3daf7250a5a
wifi: iwlwifi: mvm: tell iwlmei when we finished suspending

Since we no longer shut down the device in suspend, we also no longer
call iwl_mvm_mei_device_state() and this is a problem because iwlmei
expects this to be called when it runs its own suspend sequence. It
checks mei->device_down in iwl_mei_remove() which is called upon
suspend.

Fix this by telling iwlmei when we're done accessing the device.
When we'll wake up, the device should be untouched if CSME didn't use it
during the suspend time. If CSME used it, we'll notice it through the
CSR_FUNC_SCRATCH register.

Fixes: e8bb19c1d590 ("wifi: iwlwifi: support fast resume")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241028135215.525287b90af2.Ibf183824471ea5580d9276d104444e53191e6900@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c