]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
PCI: Make link active reporting detection generic
authorKeith Busch <keith.busch@intel.com>
Thu, 20 Sep 2018 16:27:17 +0000 (10:27 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Oct 2018 21:04:40 +0000 (16:04 -0500)
commitf0157160b359b1d263ee9d4e0a435a7ad85bbcea
treea33df725fb9d87cb8b006af386a77ee61d816e3e
parenta6bd101b8f84f9b98768e9ab1e418c239e2e669f
PCI: Make link active reporting detection generic

The spec has timing requirements when waiting for a link to become active
after a conventional reset.  Implement those hard delays when waiting for
an active link so pciehp and dpc drivers don't need to duplicate this.

For devices that don't support data link layer active reporting, wait the
fixed time recommended by the PCIe spec.

Signed-off-by: Keith Busch <keith.busch@intel.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Sinan Kaya <okaya@kernel.org>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_hpc.c
drivers/pci/pci.c
drivers/pci/pcie/dpc.c
drivers/pci/probe.c
include/linux/pci.h