Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 4:35 PM, Paul Bolle pebo...@tiscali.nl wrote: On di, 2015-07-28 at 18:45 +0800, Ley Foon Tan wrote: --- a/drivers/pci/host/Kconfig +++ b/drivers/pci/host/Kconfig +config PCIE_ALTERA + bool Altera PCIe controller + depends on ARCH_SOCFPGA + depends on OF

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 9:19 PM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: On Tue, Jul 28, 2015 at 11:45:42AM +0100, Ley Foon Tan wrote: [...] +static int altera_pcie_parse_request_of_pci_ranges(struct altera_pcie *pcie) +{ + int err, res_valid = 0; + struct device

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-29 Thread Paul Bolle
On di, 2015-07-28 at 18:45 +0800, Ley Foon Tan wrote: --- a/drivers/pci/host/Kconfig +++ b/drivers/pci/host/Kconfig +config PCIE_ALTERA + bool Altera PCIe controller + depends on ARCH_SOCFPGA + depends on OF + select PCI_MSI_IRQ_DOMAIN if PCI_MSI + help + Say Y

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 11:43 AM, Rob Herring robherri...@gmail.com wrote: On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan lf...@altera.com wrote: This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan lf...@altera.com + +static int altera_pcie_setup(int nr,

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-29 Thread Lorenzo Pieralisi
On Tue, Jul 28, 2015 at 11:45:42AM +0100, Ley Foon Tan wrote: [...] +static int altera_pcie_parse_request_of_pci_ranges(struct altera_pcie *pcie) +{ + int err, res_valid = 0; + struct device *dev = pcie-pdev-dev; + struct device_node *np = dev-of_node; +

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-28 Thread Rob Herring
On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan lf...@altera.com wrote: This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan lf...@altera.com --- drivers/pci/host/Kconfig | 9 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c |

[PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-28 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan lf...@altera.com --- drivers/pci/host/Kconfig | 9 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 576 + 3 files changed, 586

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-28 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 12:45 AM, Dinh Nguyen dinh.li...@gmail.com wrote: On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan lf...@altera.com wrote: This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan lf...@altera.com --- drivers/pci/host/Kconfig | 9 +

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-28 Thread Dinh Nguyen
On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan lf...@altera.com wrote: This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan lf...@altera.com --- drivers/pci/host/Kconfig | 9 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c |