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

Pratyush Anand pratyush.anand at gmail.com
Wed Aug 12 08:42:01 PDT 2015


On Fri, Aug 7, 2015 at 11:36 AM, Zhou Wang <wangzhou1 at hisilicon.com> wrote:
> [+cc jingoohan1 at gmail.com]
>
> On 2015/8/6 16:09, Zhou Wang wrote:
>> From: gabriele paoloni <gabriele.paoloni at huawei.com>
>>
>> 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 <gabriele.paoloni at huawei.com>

Acked-by: Pratyush Anand <pratyush.anand at gmail.com>



More information about the linux-arm-kernel mailing list