PCI: pciehp: wait 1000 ms before Link Training check
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Thu, 10 Nov 2011 07:40:37 +0000 (16:40 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 11 Nov 2011 17:31:34 +0000 (09:31 -0800)
commit0027cb3e1947d0f453fece40ed16764fb362bac6
tree3a41356b35bcf1a7bfe189602dcce524cd4bf2bf
parentfdbd3ce9efb3a045266f2f6b2f1b6047882ff092
PCI: pciehp: wait 1000 ms before Link Training check

We need to wait for 1000 ms after Data Link Layer Link Active (DLLLA)
bit reads 1b before sending configuration request. Currently pciehp
does this wait after checking Link Training (LT) bit. But we need it
before checking LT bit because LT is still set even after DLLLA bit is
set on some platforms.

Acked-by: Yinghai Lu <yinghai@kernel.org>
Tested-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_ctrl.c
drivers/pci/hotplug/pciehp_hpc.c