mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
wifi: iwlwifi: pcie: add debug print for resume flow if powered off
Log when the resume flow identifies based on the scratch register that the device was powered off. Signed-off-by: Aaron Katzin <aaron.katzin@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Link: https://patch.msgid.link/20260512222731.42623e43fde7.Ibcd656ca845828ce6f2358f9ef80e1ddf03f8f59@changeid Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
This commit is contained in:
parent
b4049b093a
commit
e2323929a6
|
|
@ -1239,8 +1239,12 @@ static int _iwl_pci_resume(struct device *device, bool restore)
|
||||||
u32 scratch = iwl_read32(trans, CSR_FUNC_SCRATCH);
|
u32 scratch = iwl_read32(trans, CSR_FUNC_SCRATCH);
|
||||||
|
|
||||||
if (!(scratch & CSR_FUNC_SCRATCH_POWER_OFF_MASK) ||
|
if (!(scratch & CSR_FUNC_SCRATCH_POWER_OFF_MASK) ||
|
||||||
scratch == ~0U)
|
scratch == ~0U) {
|
||||||
device_was_powered_off = true;
|
device_was_powered_off = true;
|
||||||
|
IWL_DEBUG_WOWLAN(trans,
|
||||||
|
"Scratch 0x%08x indicates device was powered off\n",
|
||||||
|
scratch);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* bh are re-enabled by iwl_trans_pcie_release_nic_access,
|
* bh are re-enabled by iwl_trans_pcie_release_nic_access,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user