[PATCH v11 30/60] PCI: Reorder resources list for required/optional resources

2016-04-07 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 v11 30/60] PCI: Reorder resources list for required/optional resources

2016-04-07 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