iwlwifi: use sync nmi in case of init flow failure
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Sun, 10 Feb 2019 08:42:16 +0000 (10:42 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Mar 2019 10:49:04 +0000 (12:49 +0200)
commit07d35b4270efd08e27cdad9a8d5fa31158cfc4e8
treec59fedcd2ca45e8d9b0ea6eda4252b8777865408
parentb05d57c9b647b77edf9ac4550c493cf77c3923c7
iwlwifi: use sync nmi in case of init flow failure

In case of alive interrupt timeout or any failure in the init flow
the driver generates FW nmi. The driver assumes that the nmi will
generate SW interrupt. This assumption does not hold and leads to faulty
behavior in the recovery flow.

Solve this by using sync nmi, this way, even if the driver does not
receive SW interrupt, it still starts the recovery flow.

Also remove the wait queue from iwl_fwrt_stop_device since the driver is
handling the SW interrupt synchronously.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
drivers/net/wireless/intel/iwlwifi/fw/init.c
drivers/net/wireless/intel/iwlwifi/iwl-trans.h