/* PCI: Device 23.90 ReadL I/O Error( 0): 0x1234 PCI: Device 23.90 ReadL Retry( 1) PCI: Device 23.90 ReadL Retry Successful(1)  */
static int check_return_code(char *type, struct device_node *dn, int *retry, u64 ret)
/* PCI: Device 23.90 ReadL I/O Error( 0): 0x1234 PCI: Device 23.90 ReadL Retry( 1) PCI: Device 23.90 ReadL Retry Successful(1)  */
static int check_return_code(char *type, struct device_node *dn, int *retry, u64 ret)
{
	if (ret != 0)  {
		struct pci_dn *pdn = PCI_DN(dn);
		(*retry)++;
		printk("PCI: %s: Device 0x%04X:%02X  I/O Error(%2d): 0x%04X\n",
				type, pdn->busno, pdn->devfn,
				*retry, (int)ret);
		if (((*retry) > PCI_RETRY_MAX) &&
				(limit_pci_retries > 0)) {
			mf_display_src(0xB6000103);
			panic_timeout = 0;
			panic("PCI: Hardware I/O Error, SRC B6000103, "
					"Automatic Reboot Disabled.\n");
		}
		return -1;
	}
	return 0;
}