Message ID | 20100731005910.32625.89518.stgit@localhost.localdomain (mailing list archive) |
---|---|
State | Rejected, archived |
Headers | show |
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 667b527..b924443 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c @@ -1731,6 +1731,9 @@ static int __devinit igb_probe(struct pci_dev *pdev, return -EINVAL; } + if (reset_devices && pci_reset_device_function(pdev)) + return -ENODEV; + err = pci_enable_device_mem(pdev); if (err) return err; diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 7d6a415..f459f24 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -6548,6 +6548,9 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, return -EINVAL; } + if (reset_devices && pci_reset_device_function(pdev)) + return -ENODEV; + err = pci_enable_device_mem(pdev); if (err) return err;