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>