]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: iwlwifi: mvm: trigger resume flow before wait for notifications
authorHaim, Dreyfuss <haim.dreyfuss@intel.com>
Tue, 6 Sep 2022 13:42:17 +0000 (16:42 +0300)
committerGregory Greenman <gregory.greenman@intel.com>
Sun, 18 Sep 2022 11:40:16 +0000 (14:40 +0300)
commit2b9502db06eff8d9fc8aa59221dcdc83532fffbc
treef1db6b7e0a6743a20a7c85b0801a2deb4db030cc
parentf3a66e7997f226af66f71ef7f025551143c0df41
wifi: iwlwifi: mvm: trigger resume flow before wait for notifications

We have recently enabled resume flow based on notifications.
These notifications are sent by the FW when completing the resume flow.
From IWL_DEVICE_FAMILY_AX210 the resume flow is triggered by the
transport layer on iwl_trans_d3_resume.
On IWL_DEVICE_FAMILY_22000 and earlier we trigger the resume flow by
sending the D0I3 command.

Currently, we are waiting for the notifications before sending the
command, the notifications won't be sent by the FW since there is no
resume trigger to piggyback on.

Send the command before starting the wait flow to fix it.

Signed-off-by: Haim, Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20220906161827.5f0f251edf9c.Ia49ab73105af6f52aa7d318f4984edecd3b0671a@changeid
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c