]> git.baikalelectronics.ru Git - 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)
commitc7014047b2326b96e607ae7a5f539252ceb9e391
treea33df725fb9d87cb8b006af386a77ee61d816e3e
parentb5076c523fb73fd5c4506bbfe72803ff5deeab0c
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