Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343289
b: refs/heads/master
c: 438a0f0
h: refs/heads/master
i:
  343287: 4c4fea3
v: v3
  • Loading branch information
Bjorn Helgaas committed Dec 7, 2012
1 parent a34279e commit f5bd453
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9d146e30a2d855229f0944152f84aef1a21553b
refs/heads/master: 438a0f0a1faa3dd00c0460e8232cd712215a6d46
7 changes: 2 additions & 5 deletions trunk/drivers/net/wireless/iwlwifi/pcie/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,6 @@ static void iwl_set_pwr_vmain(struct iwl_trans *trans)

/* PCI registers */
#define PCI_CFG_RETRY_TIMEOUT 0x041
#define PCI_CFG_LINK_CTRL_VAL_L0S_EN 0x01
#define PCI_CFG_LINK_CTRL_VAL_L1_EN 0x02

static void iwl_apm_config(struct iwl_trans *trans)
{
Expand All @@ -688,8 +686,7 @@ static void iwl_apm_config(struct iwl_trans *trans)
*/

pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_LNKCTL, &lctl);
if ((lctl & PCI_CFG_LINK_CTRL_VAL_L1_EN) ==
PCI_CFG_LINK_CTRL_VAL_L1_EN) {
if (lctl & PCI_EXP_LNKCTL_ASPM_L1) {
/* L1-ASPM enabled; disable(!) L0S */
iwl_set_bit(trans, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED);
dev_printk(KERN_INFO, trans->dev,
Expand All @@ -700,7 +697,7 @@ static void iwl_apm_config(struct iwl_trans *trans)
dev_printk(KERN_INFO, trans->dev,
"L1 Disabled; Enabling L0S\n");
}
trans->pm_support = !(lctl & PCI_CFG_LINK_CTRL_VAL_L0S_EN);
trans->pm_support = !(lctl & PCI_EXP_LNKCTL_ASPM_L0S);
}

/*
Expand Down

0 comments on commit f5bd453

Please sign in to comment.