--- zzzz-none-000/linux-4.1.38/arch/mips/pci/pci.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/arch/mips/pci/pci.c 2020-11-25 10:06:48.000000000 +0000 @@ -185,8 +185,15 @@ parent = &ioport_resource; if (request_resource(parent, hose->io_resource) < 0) { - release_resource(hose->mem_resource); - goto out; +#if defined(CONFIG_BCM_KF_PCI_FIXUP) + if(!((hose->io_resource->start == 0) && (hose->io_resource->end == 0))) + { +#endif + release_resource(hose->mem_resource); + goto out; +#if defined(CONFIG_BCM_KF_PCI_FIXUP) + } +#endif } *hose_tail = hose;