/* Tells each device driver that IO ports, MMIO and config space I/O are now enabled. Collects up and merges the device driver responses. Cumulative response passed back in "userdata".  */
static int eeh_report_mmio_enabled(struct pci_dev *dev, void *userdata)
/* Tells each device driver that IO ports, MMIO and config space I/O are now enabled. Collects up and merges the device driver responses. Cumulative response passed back in "userdata".  */
static int eeh_report_mmio_enabled(struct pci_dev *dev, void *userdata)
{
	enum pci_ers_result rc, *res = userdata;
	struct pci_driver *driver = dev->driver;
	if (!driver ||
	    !driver->err_handler ||
	    !driver->err_handler->mmio_enabled)
		return 0;
	rc = driver->err_handler->mmio_enabled (dev);
	if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc;
	if (*res == PCI_ERS_RESULT_NONE) *res = rc;
	return 0;
}