--- zzzz-none-000/linux-4.1.52/arch/mips/pci/pci.c 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/arch/mips/pci/pci.c 2022-03-02 11:37:12.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;