PCI: Pass type, width, and prefetchability for window alignment
authorWei Yang <weiyang@linux.vnet.ibm.com>
Fri, 6 Sep 2013 01:45:58 +0000 (09:45 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Sep 2013 21:44:58 +0000 (15:44 -0600)
commit3ad94b0d795c50836160781e63ee6bb752766aaf
tree20cf9003c1aa3b1124cd6d0a1878a0568bf45d0f
parent77a0dfcd8a4d9a93a21c8be56eaeb65cd69b351d
PCI: Pass type, width, and prefetchability for window alignment

When calculating window_alignment(), type information like IORESOURCE_MEM
and IORESOURCE_PREFETCH may not be enough.  For example, on powernv, we
need to know whether the window is 64-bit or not.

This patch passes the full resource type (res->flags) for window alignment.

[bhelgaas: changelog]
Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Gavin Shan <shangw@linux.vnet.ibm.com>
drivers/pci/setup-bus.c