summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorHans Zhang <18255117159@163.com>2026-05-18 08:42:40 +0800
committerManivannan Sadhasivam <mani@kernel.org>2026-06-09 20:52:09 +0530
commit29fbf582e75015c031e7965fdd4084af123b9ca2 (patch)
tree9a26dcba917d11d473938717ba380ca06ab42148 /include/linux/stackprotector.h
parent254f49634ee16a731174d2ae34bc50bd5f45e731 (diff)
PCI: Add pci_host_common_link_train_delay() helper
PCIe r6.0, sec 6.6.1 (Conventional Reset) requires that for a Downstream Port supporting Link speeds greater than 5.0 GT/s, software must wait a minimum of 100 ms after Link training completes before sending any Configuration Request. Introduce a static inline helper pci_host_common_link_train_delay() that checks the given max_link_speed (2 = 5.0 GT/s, 3 = 8.0 GT/s, etc.) and calls msleep(100) only when the speed is greater than 5.0 GT/s. This allows multiple host controller drivers to share the same mandatory delay without duplicating the logic. Signed-off-by: Hans Zhang <18255117159@163.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20260518004246.1384532-2-18255117159@163.com
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions