[PATCH v8 30/61] PCI: Reorder resources list for required/optional resources

2015-10-27 Thread Yinghai Lu
We try to allocate required+optional before allocate required only and expand with optional. At first we update size and alignment for required+optional resource. And after that we reorder them with new alignment, but current we only do that STARTALIGN ones. For SIZEALIGN type resource, after

[PATCH v8 30/61] PCI: Reorder resources list for required/optional resources

2015-10-27 Thread Yinghai Lu
We try to allocate required+optional before allocate required only and expand with optional. At first we update size and alignment for required+optional resource. And after that we reorder them with new alignment, but current we only do that STARTALIGN ones. For SIZEALIGN type resource, after