wifi: iwlwifi: if scratch is ~0U, consider it a failure
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 28 Aug 2025 06:55:26 +0000 (09:55 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 28 Aug 2025 11:00:45 +0000 (14:00 +0300)
commit224476613c8499f00ce4de975dd65749c5ca498c
tree97cf0fda665d3f4a2dff3229317b98ace01c0651
parentd9104cec3e8fe4b458b74709853231385779001f
wifi: iwlwifi: if scratch is ~0U, consider it a failure

We want to see bits being set in the scratch register upon resume, but
if all the bits are set, it means that we were kicked out of the PCI bus
and that clearly doesn't mean we can assume the firmware is still alive
after the suspend / resume cycle.

Fixes: cb347bd29d0d ("wifi: iwlwifi: mvm: fix hibernation")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250828095500.0f203e559242.I59eff718cb5fda575db41081a1a389f7af488717@changeid
drivers/net/wireless/intel/iwlwifi/pcie/drv.c