OSDN Git Service

PCI: Rename pci_flr_wait() to pci_dev_wait() and make it generic
authorSinan Kaya <okaya@codeaurora.org>
Tue, 27 Feb 2018 20:14:10 +0000 (14:14 -0600)
committerBjorn Helgaas <helgaas@kernel.org>
Tue, 27 Feb 2018 20:14:10 +0000 (14:14 -0600)
commita2758b6b8fdba5f1045f571fdb39d9bdb8ba0813
tree08ddd007fec9a5732d47abd21c86e17b82ed23bd
parent91295d79d65892eabd02a2a75fd4ac88197d17a1
PCI: Rename pci_flr_wait() to pci_dev_wait() and make it generic

PCIe r4.0, sec 2.3.1, Request Handling Rules, says:

  Valid reset conditions after which a device is permitted to return CRS
  are:
  * Cold, Warm, and Hot Resets,
  * FLR
  * A reset initiated in response to a D3hot to D0 uninitialized

Try to reuse FLR implementation towards other reset types.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c