mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01: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 <[email protected]> Reviewed-by: Emmanuel Grumbach <[email protected]> Link: https://patch.msgid.link/20260512222731.42623e43fde7.Ibcd656ca845828ce6f2358f9ef80e1ddf03f8f59@changeid Signed-off-by: Miri Korenblit <[email protected]>
This commit is contained in:
1 parent
b4049b093a
commit
e2323929a6
1 file changed
+5
-1
@@ -1239,8 +1239,12 @@ static int _iwl_pci_resume(struct device *device, bool restore)
|
||||
u32 scratch = iwl_read32(trans, CSR_FUNC_SCRATCH);
|
||||
|
||||
if (!(scratch & CSR_FUNC_SCRATCH_POWER_OFF_MASK) ||
|
||||
scratch == ~0U)
|
||||
scratch == ~0U) {
|
||||
device_was_powered_off = true;
|
||||
IWL_DEBUG_WOWLAN(trans,
|
||||
"Scratch 0x%08x indicates device was powered off\n",
|
||||
scratch);
|
||||
}
|
||||
} else {
|
||||
/*
|
||||
* bh are re-enabled by iwl_trans_pcie_release_nic_access,
|
||||
|
||||
Reference in new issue
Block a user