Re: [PATCH v11 2/4] PCI: designware: Add generic dw_pcie_wait_for_link()

2016-02-26 Thread Pratyush Anand
On Fri, Feb 26, 2016 at 10:00 PM, Bjorn Helgaas wrote: > From: Joao Pinto > > Several DesignWare-based drivers (dra7xx, exynos, imx6, keystone, qcom, and > spear13xx) had similar loops waiting for the link to come up. > > Add a generic dw_pcie_wait_for_link() for use by all these drivers so the >

[PATCH v11 2/4] PCI: designware: Add generic dw_pcie_wait_for_link()

2016-02-26 Thread Bjorn Helgaas
From: Joao Pinto Several DesignWare-based drivers (dra7xx, exynos, imx6, keystone, qcom, and spear13xx) had similar loops waiting for the link to come up. Add a generic dw_pcie_wait_for_link() for use by all these drivers so the waiting is done consistently, e.g., always using usleep_range() rat