pci.c (7e95e365d5399647a41e10059e4b09826b82d78b) pci.c (8a30930563521c9dba73c93b5631be1d0993f78f)
1/*
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 107 unchanged lines hidden (view full) ---

116 pos = pci_pcie_cap(pdev);
117 if (!pos)
118 return;
119
120 parent = pdev->bus->self;
121 if (!parent)
122 return;
123
1/*
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 107 unchanged lines hidden (view full) ---

116 pos = pci_pcie_cap(pdev);
117 if (!pos)
118 return;
119
120 parent = pdev->bus->self;
121 if (!parent)
122 return;
123
124 if (ah->btcoex_hw.scheme != ATH_BTCOEX_CFG_NONE) {
124 if (ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_NONE) {
125 /* Bluetooth coexistance requires disabling ASPM. */
126 pci_read_config_byte(pdev, pos + PCI_EXP_LNKCTL, &aspm);
127 aspm &= ~(PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1);
128 pci_write_config_byte(pdev, pos + PCI_EXP_LNKCTL, aspm);
129
130 /*
131 * Both upstream and downstream PCIe components should
132 * have the same ASPM settings.

--- 241 unchanged lines hidden ---
125 /* Bluetooth coexistance requires disabling ASPM. */
126 pci_read_config_byte(pdev, pos + PCI_EXP_LNKCTL, &aspm);
127 aspm &= ~(PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1);
128 pci_write_config_byte(pdev, pos + PCI_EXP_LNKCTL, aspm);
129
130 /*
131 * Both upstream and downstream PCIe components should
132 * have the same ASPM settings.

--- 241 unchanged lines hidden ---