iwlwifi: add debugging to shadow registers and fix typo
Add a debugging log when using shadow registers. Also fix a minor typo in this connection. Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Родитель
20d3b64752
Коммит
d38069d1e3
|
@ -143,7 +143,7 @@ enum iwl_led_mode {
|
||||||
* @chain_noise_scale: default chain noise scale used for gain computation
|
* @chain_noise_scale: default chain noise scale used for gain computation
|
||||||
* @wd_timeout: TX queues watchdog timeout
|
* @wd_timeout: TX queues watchdog timeout
|
||||||
* @max_event_log_size: size of event log buffer size for ucode event logging
|
* @max_event_log_size: size of event log buffer size for ucode event logging
|
||||||
* @shadow_reg_enable: HW shadhow register bit
|
* @shadow_reg_enable: HW shadow register support
|
||||||
* @hd_v2: v2 of enhanced sensitivity value, used for 2000 series and up
|
* @hd_v2: v2 of enhanced sensitivity value, used for 2000 series and up
|
||||||
* @no_idle_support: do not support idle mode
|
* @no_idle_support: do not support idle mode
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -829,6 +829,7 @@ static int iwl_nic_init(struct iwl_trans *trans)
|
||||||
if (trans->cfg->base_params->shadow_reg_enable) {
|
if (trans->cfg->base_params->shadow_reg_enable) {
|
||||||
/* enable shadow regs in HW */
|
/* enable shadow regs in HW */
|
||||||
iwl_set_bit(trans, CSR_MAC_SHADOW_REG_CTRL, 0x800FFFFF);
|
iwl_set_bit(trans, CSR_MAC_SHADOW_REG_CTRL, 0x800FFFFF);
|
||||||
|
IWL_DEBUG_INFO(trans, "Enabling shadow registers in device\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче