Re: [PATCH v15 1/9] PCI: Unify wait for link active into generic PCI

2018-05-10 Thread Bjorn Helgaas
On Thu, May 03, 2018 at 01:03:50AM -0400, Oza Pawandeep wrote: > + * pcie_wait_for_link - Wait for link till it's active/inactive > + * @pdev: Bridge device > + * @active: waiting for active or inactive ? s/inactive ?/inactive?/

[PATCH v15 1/9] PCI: Unify wait for link active into generic PCI

2018-05-02 Thread Oza Pawandeep
Clients such as HP, DPC are using pcie_wait_link_active(), which waits till the link becomes active or inactive. Made generic function and moved it to drivers/pci/pci.c Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index 18a42f8..e