]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix fw_restart module parameter
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 21 Jun 2010 23:52:55 +0000 (16:52 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 2 Jul 2010 18:08:52 +0000 (11:08 -0700)
commit8dfa2f46c1eec270518ab2773a8a12b75a4ecd80
tree2f9a291ebcabab800e2e8070763d9d23d3197a87
parent601a63198acbae3f7f99496ad4ebb39cb89559bd
iwlwifi: fix fw_restart module parameter

fw_restart module parameter was broken by the recent check for stuck
queue patch, driver check the fx_restart module parameter
before reload the firmware; but the stuck queue timer kick in after
firmware error and reload the firmware even fw_restart=0. In this case,
driver should not reload the firmware, it is important to help debugging
uCode error.

The only case we can ignore the module parameter is when user request
firmware reload from debugfs, which can bypass the checking and perform
firmware reload all the time.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-debugfs.c
drivers/net/wireless/iwlwifi/iwl-rx.c