projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e9f46c
)
PCI: disable ASPM on VIA root-port-under-bridge configurations
author
Shaohua Li
<
[email protected]
>
Mon, 8 Jun 2009 01:27:25 +0000
(09:27 +0800)
committer
Jesse Barnes
<
[email protected]
>
Thu, 11 Jun 2009 19:04:18 +0000
(12:04 -0700)
VIA has a strange chipset, it has root port under a bridge. Disable ASPM
for such strange chipset.
Cc:
[email protected]
Tested-by: Wolfgang Denk <
[email protected]
>
Signed-off-by: Shaohua Li <
[email protected]
>
Signed-off-by: Jesse Barnes <
[email protected]
>
drivers/pci/pcie/aspm.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pcie/aspm.c
b/drivers/pci/pcie/aspm.c
index b0367f168af4b95ff549bdad6b31fa1a9548e113..777b2c76caf5a8b7687bff056d32056fdb666117 100644
(file)
--- a/
drivers/pci/pcie/aspm.c
+++ b/
drivers/pci/pcie/aspm.c
@@
-638,6
+638,10
@@
void pcie_aspm_init_link_state(struct pci_dev *pdev)
if (pdev->pcie_type != PCI_EXP_TYPE_ROOT_PORT &&
pdev->pcie_type != PCI_EXP_TYPE_DOWNSTREAM)
return;
+ /* VIA has a strange chipset, root port is under a bridge */
+ if (pdev->pcie_type == PCI_EXP_TYPE_ROOT_PORT &&
+ pdev->bus->self)
+ return;
down_read(&pci_bus_sem);
if (list_empty(&pdev->subordinate->devices))
goto out;