[PATCH v9 32/60] PCI: Treat ROM resource as optional during realloc

2015-12-10 Thread Yinghai Lu
Current on realloc path, we just ignore ROM resource if we can not assign them in first try. Treat ROM resources as optional resources,so try to allocate them together with required ones, if can not assign them, could go with other required resources only, and try to allocate them second time in

[PATCH v9 32/60] PCI: Treat ROM resource as optional during realloc

2015-12-10 Thread Yinghai Lu
Current on realloc path, we just ignore ROM resource if we can not assign them in first try. Treat ROM resources as optional resources,so try to allocate them together with required ones, if can not assign them, could go with other required resources only, and try to allocate them second time in