Re: [PATCH v2 3/4] PCI: Change extend_bridge_window() to set resource size directly

From: Mika Westerberg
Date: Thu Jan 16 2020 - 05:21:23 EST


On Wed, Jan 15, 2020 at 05:57:47PM +0000, Nicholas Johnson wrote:
> Change extend_bridge_window() to set resource size directly instead of
> using additional resource lists.
>
> This is required in preparation for the next patch [0] which will allow
> the resource to shrink. If we do not make this change, the next patch
> will need to have complicated logic to handle shrinking the overall size
> using size and add_size.
>
> Remove the resource from add_list, as a zero-sized additional resource
> is redundant.
>
> Update comment in pci_bus_distribute_available_resources() to reflect
> the above changes.
>
> [0]
> PCI: Allow extend_bridge_window() to shrink resource if necessary
>
> Signed-off-by: Nicholas Johnson <nicholas.johnson-opensource@xxxxxxxxxxxxxx>

Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>