[PATCH] ARM/PCI: move align_resource function pointer into pci_host_bridge structure
helgaas at kernel.org
Wed Nov 25 11:32:01 PST 2015
On Wed, Nov 11, 2015 at 09:12:25AM +0800, Gabriele Paoloni wrote:
> From: gabpao01 <gabriele.paoloni at huawei.com>
> commit b3a72384fe29 ("ARM/PCI: Replace
> pci_sys_data->align_resource with global function pointer") has
> introduced a global function pointer that makes the ARM specific
> code not portable and broken in case any platform have a two
> different HW IPs for the PCIe host bridge controller.
> This patch moves align_resource function pointer into
> pci_host_bridge structure so that the code is now suitable to be
> reworked as we want to get rid of hw_pci structure (the host bridge
> drivers can just set the align function pointer in the
> pci_host_bridge structure) and there is no more broken code for a
> SoC with two HW IPs.
> Signed-off-by: Gabriele Paoloni <gabriele.paoloni at huawei.com>
This looks good to me. I merged b3a72384fe29 so maybe it would make
sense for me to merge this follow-up as well. I put it on my
for-linus branch for v4.4.
If you'd rather merge it via an ARM tree, here's my ack:
Acked-by: Bjorn Helgaas <bhelgaas at google.com>
If you want me to merge it, an ARM ack would be nice. If you want to
merge it, let me know and I'll drop it from my tree.
> + /* Resource alignement requirements */
> + resource_size_t (*align_resource)(struct pci_dev *dev,
More information about the linux-arm-kernel