commit | 9f5a70f18c5893a30d6c339adc48de43c57dd7e2 | [log] [tgz] |
---|---|---|
author | Oza Pawandeep <poza@codeaurora.org> | Thu May 17 16:44:11 2018 -0500 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Thu May 17 16:44:11 2018 -0500 |
tree | a9883d7afecbedeffb9379bc88c9c5d06793f1ab | |
parent | 2af8641b2ad3c0faf1ba63e989ca2f2f2134e10d [diff] |
PCI: Add generic pcie_wait_for_link() interface Clients such as hotplug and Downstream Port Containment (DPC) both need to wait until a link becomes active or inactive. Add a generic pcie_wait_link_active() interface and use it instead of duplicating the code. Signed-off-by: Oza Pawandeep <poza@codeaurora.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Keith Busch <keith.busch@intel.com>