From: Yinghai Lu Date: Mon, 7 Nov 2011 15:53:23 +0000 (-0800) Subject: PCI: pciehp: Retrieve link speed after link is trained X-Git-Tag: v3.2-rc3~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdbd3ce9efb3a045266f2f6b2f1b6047882ff092;p=pandora-kernel.git PCI: pciehp: Retrieve link speed after link is trained During hot plug, board_added will call pciehp_power_on_slot(). But link speed is updated in pciehp_power_on_slot(). We should not update link speed there, because that is too early. So move the link speed update to pciehp_check_link_status() after making sure the link has been trained. -v2: fix compile warning that Kenji found. Signed-off-by: Yinghai Lu Reviewed-by: Kenji Kaneshige Tested-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed