* is used, so we use the conrol offset rather than status and shift
* the test bit to match.
*/
--- -- if (pci_wait_for_pending(dev, pos + PCI_AF_CTRL,
+++ ++ if (!pci_wait_for_pending(dev, pos + PCI_AF_CTRL,
PCI_AF_STATUS_TP << 8))
--- -- goto clear;
- - --
- - -- dev_err(&dev->dev, "transaction is not cleared; proceeding with reset anyway\n");
+++ ++ dev_err(&dev->dev, "timed out waiting for pending transaction; performing AF function level reset anyway\n");
- dev_err(&dev->dev, "transaction is not cleared; proceeding with reset anyway\n");
-
--- --clear:
pci_write_config_byte(dev, pos + PCI_AF_CTRL, PCI_AF_CTRL_FLR);
msleep(100);
--- --
return 0;
}