]> 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)
commit813990b67cb5e5d9bcb072ecd3b0ac37d1731423
tree60f443e2745b8b419ece22040d54f619895c465b
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
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