projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0027cb3
)
PCI: pciehp: wait 100 ms after Link Training check
author
Kenji Kaneshige
<
[email protected]
>
Thu, 10 Nov 2011 07:42:16 +0000
(16:42 +0900)
committer
Jesse Barnes
<
[email protected]
>
Fri, 11 Nov 2011 17:31:43 +0000
(09:31 -0800)
If the port supports Link speeds greater than 5.0 GT/s, we must wait
for 100 ms after Link training completes before sending configuration
request.
Acked-by: Yinghai Lu <
[email protected]
>
Tested-by: Yinghai Lu <
[email protected]
>
Signed-off-by: Kenji Kaneshige <
[email protected]
>
Signed-off-by: Jesse Barnes <
[email protected]
>
drivers/pci/hotplug/pciehp_hpc.c
patch
|
blob
|
history
diff --git
a/drivers/pci/hotplug/pciehp_hpc.c
b/drivers/pci/hotplug/pciehp_hpc.c
index 81a177a5f032243ef0c7437ec30096f323eb3e91..7b1414810ae3e0e0a5ccbcd9bec0f21051cf95db 100644
(file)
--- a/
drivers/pci/hotplug/pciehp_hpc.c
+++ b/
drivers/pci/hotplug/pciehp_hpc.c
@@
-302,6
+302,14
@@
int pciehp_check_link_status(struct controller *ctrl)
return retval;
}
+ /*
+ * If the port supports Link speeds greater than 5.0 GT/s, we
+ * must wait for 100 ms after Link training completes before
+ * sending configuration request.
+ */
+ if (ctrl->pcie->port->subordinate->max_bus_speed > PCIE_SPEED_5_0GT)
+ msleep(100);
+
pcie_update_link_speed(ctrl->pcie->port->subordinate, lnk_status);
return retval;