PCI: keep ASPM link state consistent throughout PCIe hierarchy
authorShaohua Li <shaohua.li@intel.com>
Fri, 19 Dec 2008 01:27:42 +0000 (09:27 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:20 +0000 (11:13 -0800)
commit46bbdfa44cfc0d352148a0dc33ba9f6db02ccdf0
treeb5b7d00f66ea4b5865b64d97592f126fb9f12f22
parent2b8c2efe44ed897fc958131d70addc89876d806b
PCI: keep ASPM link state consistent throughout PCIe hierarchy

In a PCIe hierarchy with a switch present, if the link state of an
endpoint device is changed, we must check the whole hierarchy from the
endpoint device to root port, and for each link in the hierarchy, the new
link state should be configured. Previously, the implementation checked
the state but forgot to configure the links between root port to switch.
Fixes Novell bz #448987.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Tested-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aspm.c