Thread (2 messages) 2 messages, 2 authors, 2015-08-12

[PATCH v6 2/6] ARM/PCI: remove align_resource in pci_sys_data

From: pratyush.anand@gmail.com (Pratyush Anand)
Date: 2015-08-12 15:42:01
Also in: linux-devicetree, linux-pci

On Fri, Aug 7, 2015 at 11:36 AM, Zhou Wang [off-list ref] wrote:
[+cc jingoohan1 at gmail.com]

On 2015/8/6 16:09, Zhou Wang wrote:
quoted
From: gabriele paoloni <redacted>

This patch is needed in order to unify the PCIe designware framework for ARM and
ARM64 architectures. In the PCIe designware unification process we are calling
pci_create_root_bus() passing a "sysdata" parameter that is the same for both
ARM and ARM64 and is of type "struct pcie_port*". In the ARM case this will
cause a problem with the function pcibios_align_resource(); in fact this will
cast "dev->sysdata" to "struct pci_sys_data*", whereas designware had passed a
"struct pcie_port*" pointer.

This patch solves the issue by removing "align_resource" from "pci_sys_data"
struct and defining a static global function pointer in "bios32.c"

Signed-off-by: Gabriele Paoloni <redacted>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help