PCI/VPD: Make pci_vpd_wait() uninterruptible
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 13 May 2021 20:56:41 +0000 (22:56 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 9 Aug 2021 18:43:50 +0000 (13:43 -0500)
commit91ab5d9d02a97264368eb1d72efdba2ec18cc0d4
treec3e2c643bcdf6585d4da34b2541380822ce6f91e
parent1285762c07121b449cd60166b813c0084b792736
PCI/VPD: Make pci_vpd_wait() uninterruptible

Reading/writing 4 bytes should be fast enough even on a slow bus, therefore
pci_vpd_wait() doesn't have to be interruptible.  Making it uninterruptible
allows to simplify the code.

In addition make VPD writes uninterruptible in general.  It's about vital
data, and allowing writes to be interruptible may leave the VPD in an
inconsistent state.

Link: https://lore.kernel.org/r/258bf994-bc2a-2907-9181-2c7a562986d5@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c