/* Restart the card from scratch, as if from a cold-boot. Implementation resembles the first-half of the e1000_resume routine.  */
static pci_ers_result_t atl1e_io_slot_reset(struct pci_dev *pdev)
/* Restart the card from scratch, as if from a cold-boot. Implementation resembles the first-half of the e1000_resume routine.  */
static pci_ers_result_t atl1e_io_slot_reset(struct pci_dev *pdev)
{
	struct net_device *netdev = pci_get_drvdata(pdev);
	struct atl1e_adapter *adapter = netdev_priv(netdev);
	if (pci_enable_device(pdev)) {
		dev_err(&pdev->dev,
		       "ATL1e: Cannot re-enable PCI device after reset.\n");
		return PCI_ERS_RESULT_DISCONNECT;
	}
	pci_set_master(pdev);
	pci_enable_wake(pdev, PCI_D3hot, 0);
	pci_enable_wake(pdev, PCI_D3cold, 0);
	atl1e_reset_hw(&adapter->hw);
	return PCI_ERS_RESULT_RECOVERED;
}