diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/common.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index 3bd183336563..1173521f21fb 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c | |||
@@ -512,13 +512,13 @@ il_led_cmd(struct il_priv *il, unsigned long on, unsigned long off) | |||
512 | } | 512 | } |
513 | 513 | ||
514 | D_LED("Led blink time compensation=%u\n", | 514 | D_LED("Led blink time compensation=%u\n", |
515 | il->cfg->base_params->led_compensation); | 515 | il->cfg->led_compensation); |
516 | led_cmd.on = | 516 | led_cmd.on = |
517 | il_blink_compensation(il, on, | 517 | il_blink_compensation(il, on, |
518 | il->cfg->base_params->led_compensation); | 518 | il->cfg->led_compensation); |
519 | led_cmd.off = | 519 | led_cmd.off = |
520 | il_blink_compensation(il, off, | 520 | il_blink_compensation(il, off, |
521 | il->cfg->base_params->led_compensation); | 521 | il->cfg->led_compensation); |
522 | 522 | ||
523 | ret = il->ops->led->cmd(il, &led_cmd); | 523 | ret = il->ops->led->cmd(il, &led_cmd); |
524 | if (!ret) { | 524 | if (!ret) { |
@@ -691,7 +691,7 @@ il_eeprom_verify_signature(struct il_priv *il) | |||
691 | const u8 * | 691 | const u8 * |
692 | il_eeprom_query_addr(const struct il_priv *il, size_t offset) | 692 | il_eeprom_query_addr(const struct il_priv *il, size_t offset) |
693 | { | 693 | { |
694 | BUG_ON(offset >= il->cfg->base_params->eeprom_size); | 694 | BUG_ON(offset >= il->cfg->eeprom_size); |
695 | return &il->eeprom[offset]; | 695 | return &il->eeprom[offset]; |
696 | } | 696 | } |
697 | EXPORT_SYMBOL(il_eeprom_query_addr); | 697 | EXPORT_SYMBOL(il_eeprom_query_addr); |
@@ -722,7 +722,7 @@ il_eeprom_init(struct il_priv *il) | |||
722 | u16 addr; | 722 | u16 addr; |
723 | 723 | ||
724 | /* allocate eeprom */ | 724 | /* allocate eeprom */ |
725 | sz = il->cfg->base_params->eeprom_size; | 725 | sz = il->cfg->eeprom_size; |
726 | D_EEPROM("NVM size = %d\n", sz); | 726 | D_EEPROM("NVM size = %d\n", sz); |
727 | il->eeprom = kzalloc(sz, GFP_KERNEL); | 727 | il->eeprom = kzalloc(sz, GFP_KERNEL); |
728 | if (!il->eeprom) { | 728 | if (!il->eeprom) { |
@@ -4218,7 +4218,7 @@ il_apm_init(struct il_priv *il) | |||
4218 | * If not (unlikely), enable L0S, so there is at least some | 4218 | * If not (unlikely), enable L0S, so there is at least some |
4219 | * power savings, even without L1. | 4219 | * power savings, even without L1. |
4220 | */ | 4220 | */ |
4221 | if (il->cfg->base_params->set_l0s) { | 4221 | if (il->cfg->set_l0s) { |
4222 | lctl = il_pcie_link_ctl(il); | 4222 | lctl = il_pcie_link_ctl(il); |
4223 | if ((lctl & PCI_CFG_LINK_CTRL_VAL_L1_EN) == | 4223 | if ((lctl & PCI_CFG_LINK_CTRL_VAL_L1_EN) == |
4224 | PCI_CFG_LINK_CTRL_VAL_L1_EN) { | 4224 | PCI_CFG_LINK_CTRL_VAL_L1_EN) { |
@@ -4235,9 +4235,9 @@ il_apm_init(struct il_priv *il) | |||
4235 | } | 4235 | } |
4236 | 4236 | ||
4237 | /* Configure analog phase-lock-loop before activating to D0A */ | 4237 | /* Configure analog phase-lock-loop before activating to D0A */ |
4238 | if (il->cfg->base_params->pll_cfg_val) | 4238 | if (il->cfg->pll_cfg_val) |
4239 | il_set_bit(il, CSR_ANA_PLL_CFG, | 4239 | il_set_bit(il, CSR_ANA_PLL_CFG, |
4240 | il->cfg->base_params->pll_cfg_val); | 4240 | il->cfg->pll_cfg_val); |
4241 | 4241 | ||
4242 | /* | 4242 | /* |
4243 | * Set "initialization complete" bit to move adapter from | 4243 | * Set "initialization complete" bit to move adapter from |
@@ -4267,7 +4267,7 @@ il_apm_init(struct il_priv *il) | |||
4267 | * do not disable clocks. This preserves any hardware bits already | 4267 | * do not disable clocks. This preserves any hardware bits already |
4268 | * set by default in "CLK_CTRL_REG" after reset. | 4268 | * set by default in "CLK_CTRL_REG" after reset. |
4269 | */ | 4269 | */ |
4270 | if (il->cfg->base_params->use_bsm) | 4270 | if (il->cfg->use_bsm) |
4271 | il_wr_prph(il, APMG_CLK_EN_REG, | 4271 | il_wr_prph(il, APMG_CLK_EN_REG, |
4272 | APMG_CLK_VAL_DMA_CLK_RQT | APMG_CLK_VAL_BSM_CLK_RQT); | 4272 | APMG_CLK_VAL_DMA_CLK_RQT | APMG_CLK_VAL_BSM_CLK_RQT); |
4273 | else | 4273 | else |
@@ -4565,7 +4565,7 @@ il_alloc_txq_mem(struct il_priv *il) | |||
4565 | if (!il->txq) | 4565 | if (!il->txq) |
4566 | il->txq = | 4566 | il->txq = |
4567 | kzalloc(sizeof(struct il_tx_queue) * | 4567 | kzalloc(sizeof(struct il_tx_queue) * |
4568 | il->cfg->base_params->num_of_queues, GFP_KERNEL); | 4568 | il->cfg->num_of_queues, GFP_KERNEL); |
4569 | if (!il->txq) { | 4569 | if (!il->txq) { |
4570 | IL_ERR("Not enough memory for txq\n"); | 4570 | IL_ERR("Not enough memory for txq\n"); |
4571 | return -ENOMEM; | 4571 | return -ENOMEM; |
@@ -4942,11 +4942,11 @@ il_check_stuck_queue(struct il_priv *il, int cnt) | |||
4942 | 4942 | ||
4943 | timeout = | 4943 | timeout = |
4944 | txq->time_stamp + | 4944 | txq->time_stamp + |
4945 | msecs_to_jiffies(il->cfg->base_params->wd_timeout); | 4945 | msecs_to_jiffies(il->cfg->wd_timeout); |
4946 | 4946 | ||
4947 | if (time_after(jiffies, timeout)) { | 4947 | if (time_after(jiffies, timeout)) { |
4948 | IL_ERR("Queue %d stuck for %u ms.\n", q->id, | 4948 | IL_ERR("Queue %d stuck for %u ms.\n", q->id, |
4949 | il->cfg->base_params->wd_timeout); | 4949 | il->cfg->wd_timeout); |
4950 | ret = il_force_reset(il, false); | 4950 | ret = il_force_reset(il, false); |
4951 | return (ret == -EAGAIN) ? 0 : 1; | 4951 | return (ret == -EAGAIN) ? 0 : 1; |
4952 | } | 4952 | } |
@@ -4974,7 +4974,7 @@ il_bg_watchdog(unsigned long data) | |||
4974 | if (test_bit(S_EXIT_PENDING, &il->status)) | 4974 | if (test_bit(S_EXIT_PENDING, &il->status)) |
4975 | return; | 4975 | return; |
4976 | 4976 | ||
4977 | timeout = il->cfg->base_params->wd_timeout; | 4977 | timeout = il->cfg->wd_timeout; |
4978 | if (timeout == 0) | 4978 | if (timeout == 0) |
4979 | return; | 4979 | return; |
4980 | 4980 | ||
@@ -5001,7 +5001,7 @@ EXPORT_SYMBOL(il_bg_watchdog); | |||
5001 | void | 5001 | void |
5002 | il_setup_watchdog(struct il_priv *il) | 5002 | il_setup_watchdog(struct il_priv *il) |
5003 | { | 5003 | { |
5004 | unsigned int timeout = il->cfg->base_params->wd_timeout; | 5004 | unsigned int timeout = il->cfg->wd_timeout; |
5005 | 5005 | ||
5006 | if (timeout) | 5006 | if (timeout) |
5007 | mod_timer(&il->watchdog, | 5007 | mod_timer(&il->watchdog, |