iwlwifi: avoid d0i3 commands when no/init ucode is loaded
authorEliad Peller <eliad@wizery.com>
Thu, 10 Dec 2015 13:47:11 +0000 (15:47 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Dec 2015 11:05:03 +0000 (13:05 +0200)
commit08f0d23d97dcb49ca7ba65a3fc714a5d28a91d0c
treec40ac7a5c4b1386e65c2cc40b65b7ba62d94ae60
parent36be0eb62e8292b1dbe6fdc2163196f9f69ca422
iwlwifi: avoid d0i3 commands when no/init ucode is loaded

d0i3 commands are not supported in the init image, so take
a reference to ensure we don't enter d0i3 during init image,
and additional checks to prevent d0i3 commands when no
fw image is loaded.

Add a few WARN_ON_ONCE to the d0i3 enter/exit commands
to ensure we send d0i3 commands only when the normal
ucode is loaded.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
This page took 0.026952 seconds and 5 git commands to generate.