PCI/VPD: Check for VPD access completion before checking for timeout
authorBert Kenward <bkenward@solarflare.com>
Thu, 26 Jul 2018 15:21:29 +0000 (16:21 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 14 Aug 2018 21:04:46 +0000 (16:04 -0500)
commit6eaf2781137842429c447bb491402b231df8a0f1
tree7028e521afae6241b3a1fc33d0ba2d5988357a5d
parentb72ae8cac0caff86fe414fceb940655c2d1371c9
PCI/VPD: Check for VPD access completion before checking for timeout

Previously we checked the timeout before checking the VPD access completion
bit.  On a very heavily loaded system this can cause VPD access to timeout.
Check the completion bit before checking the timeout.

Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c