From: Myron Stowe Date: Thu, 31 Jan 2013 23:29:25 +0000 (-0700) Subject: PCI/ASPM: Deallocate upstream link state even if device is not PCIe X-Git-Tag: v3.9-rc1~82^2~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84fb913c43475e0d1e061220ef4622e3e82e91d6;p=pandora-kernel.git PCI/ASPM: Deallocate upstream link state even if device is not PCIe On PCI bus hotplug removal, pcie_aspm_exit_link_state() can potentially skip parent devices that have link_state allocated. Instead of exiting early if a given device is not PCIe, check whether or not the device's parent has link_state allocated. This enables pcie_aspm_exit_link_state() to properly clean up parent link_state when the last function in a slot might not be PCIe. Reported-by: Joe Lawrence Tested-by: Joe Lawrence Signed-off-by: Myron Stowe Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed