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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 25 Jan 2009 00:36:24 +0000 (16:36 -0800)
commitd2da924fad2d44f5b0be87f9b7edc791e347de7c
treef84282047cf38da2ba17c9223142be0d660b35d3
parentd10bdc828883501523caefe55eaf0f9f183b197b
PCI: keep ASPM link state consistent throughout PCIe hierarchy

commit 46bbdfa44cfc0d352148a0dc33ba9f6db02ccdf0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pcie/aspm.c