]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add pci_wait_for_pending() (refactor pci_wait_for_pending_transaction())
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 17 Dec 2013 23:43:39 +0000 (16:43 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 18 Dec 2013 00:36:38 +0000 (17:36 -0700)
commit31db3382ee57b92f0c1e750aefa0552d188a9ce1
tree60f443e2745b8b419ece22040d54f619895c465b
parent446a01ebfd5c46dcad993153e533f5f1d30e2d44
PCI: Add pci_wait_for_pending() (refactor pci_wait_for_pending_transaction())

We currently have two instance of this loop which waits for a pending bit
to clear in a status dword.  Generalize the function for future users.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
include/linux/pci.h