fpgasupdate: hold the FME during non-PR update
Holding an exclusive lock on the FME device during non-PR updates
prevents another fpgaconf from initiating, preventing the
driver from re-enabling the Port prematurely with respect to the
initial non-PR update.
@@ -727,6 +727,7 @@ def main():
'%s : %s', pac.pci_node.pci_address, sec_dev.devpath)
try:
+ with pac.fme:
with sec_dev as descr:
stat, mesg = update_fw(descr, args, pac)
except SecureUpdateError as exc:
