RE: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-07-17 Thread Gabriele Paoloni
Dudau; linux- > p...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicetree@vger.kernel.org; Yuanzhichang; Zhudacai; zhangjukuo; > qiuzhenfa; Liguozhu (Kenneth) > Subject: Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support > > On Mon, Jul 13, 2015 at 12:45:52PM +0100,

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-07-13 Thread Lorenzo Pieralisi
ware.h > >>>> index d0bbd27..ab78710 100644 > >>>> --- a/drivers/pci/host/pcie-designware.h > >>>> +++ b/drivers/pci/host/pcie-designware.h > >>>> @@ -34,7 +34,7 @@ struct pcie_port { > >>>> u64 c

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-07-13 Thread Zhou Wang
e_t io_base; >>>> u64 io_mod_base; >>>> phys_addr_t io_bus_addr; >>>> u32 io_size; >>>> @@ -42,10 +42,10 @@ struct pcie_port { >>>> u64 mem

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-07-13 Thread Lorenzo Pieralisi
cfg; > > > - struct resource io; > > > - struct resource mem; > > > - struct resource busn; > > > + struct resource *cfg; > > > + struct resource *io; > > > + struct resource *mem; > >

RE: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-16 Thread Gabriele Paoloni
el.org; linux-arm-ker...@lists.infradead.org; > devicetree@vger.kernel.org; Yuanzhichang; Zhudacai; zhangjukuo; > qiuzhenfa; Liguozhu (Kenneth) > Subject: Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support > > On 2015/6/11 22:32, Gabriele Paoloni wrote: > > Hi Zhou Wang > &g

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-16 Thread Zhou Wang
if (!irq) > - irq = pp->irq; > - > - return irq; > -} > - > -static struct hw_pci dw_pci = { > - .setup = dw_pcie_setup, > - .scan = dw_pcie_scan_bus, > - .map_irq = dw_pcie_map_irq, > -}; > - > void dw_

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-16 Thread Zhou Wang
Hi Pratyush, sorry for late. On 2015/6/15 3:18, Pratyush Anand wrote: > Hi Zhou Wang, > > Thanks for unifying arm and arm64 code. > > On Wed, Jun 3, 2015 at 2:05 PM, Zhou Wang wrote: >> >> This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete >> function dw_pcie_setup, dw

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-14 Thread Pratyush Anand
Hi Zhou Wang, Thanks for unifying arm and arm64 code. On Wed, Jun 3, 2015 at 2:05 PM, Zhou Wang wrote: > > This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete > function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw_pci, > move related operations to dw_pc

RE: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-11 Thread Gabriele Paoloni
*mem; + struct resource *busn; int irq; u32 lanes; struct pcie_host_ops*ops; diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 020d788..e78ddf8 100644 --- a/drivers/pc

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-10 Thread Zhou Wang
/pci/host/pcie-designware.h > @@ -34,7 +34,7 @@ struct pcie_port { > u64 cfg1_mod_base; > void __iomem*va_cfg1_base; > u32 cfg1_size; > - u64 io_base; > + resource_size_t io_b

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-10 Thread Zhou Wang
On 2015/6/9 19:15, Lorenzo Pieralisi wrote: > On Fri, Jun 05, 2015 at 09:11:30AM +0100, Zhou Wang wrote: > > [...] > -int dw_pcie_host_init(struct pcie_port *pp) +int __init dw_pcie_host_init(struct pcie_port *pp) { struct device_node *np = pp->dev->of_node; struct

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-10 Thread Zhou Wang
On 2015/6/4 21:19, James Morse wrote: > On 03/06/15 09:35, Zhou Wang wrote: >> This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete >> function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw_pci, >> move related operations to dw_pcie_host_init. Also set pp->ro

RE: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-10 Thread Gabriele Paoloni
*io; + struct resource *mem; + struct resource *busn; int irq; u32 lanes; struct pcie_host_ops*ops; diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 020d788..e

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-09 Thread Lorenzo Pieralisi
On Fri, Jun 05, 2015 at 09:11:30AM +0100, Zhou Wang wrote: [...] > >> -int dw_pcie_host_init(struct pcie_port *pp) > >> +int __init dw_pcie_host_init(struct pcie_port *pp) > >> { > >>struct device_node *np = pp->dev->of_node; > >>struct platform_device *pdev = to_platform_device(pp->dev)

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-05 Thread Zhou Wang
On 2015/6/4 21:19, James Morse wrote: > On 03/06/15 09:35, Zhou Wang wrote: >> This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete >> function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw_pci, >> move related operations to dw_pcie_host_init. Also set pp->ro

Re: [PATCH v2 2/4] PCI: designware: Add ARM64 support

2015-06-04 Thread James Morse
On 03/06/15 09:35, Zhou Wang wrote: > This patch tries to unify ARM32 and ARM64 PCIe in designware driver. Delete > function dw_pcie_setup, dw_pcie_scan_bus, dw_pcie_map_irq and struct hw_pci, > move related operations to dw_pcie_host_init. Also set pp->root_bus_nr = 0 in > each PCIe host driver wh