Altera PCIe host controller driver with MSI support
v12 cover Altera PCIe host controller driver with MSI support
This is the 12th version of patch set to add support for Altera PCIe host controller with MSI feature on Altera FPGA device families. This patchset mainly resovle the comments from Bjorn.
This patchset is based on v4.3-rc6.
v11->v12 changes:
- pcie-altera: use DECLARE_PCI_FIXUP_EARLY for pcie retrain fixup
- pcie-altera: move pcie_bus_configure_settings before pci_bus_add_devices
- pcie-altera: add %d for irq bit in dev_err()
- pcie-altera: prevent enumeration of root complex resources in config accessors
- Documentation: add Acked-by from Rob Herring
History:
-------
[v1]: https://lkml.org/lkml/2015/7/28/395
[v2]: https://lkml.org/lkml/2015/7/31/267
[v3]: http://www.kernelhub.org/?msg=811940&p=2
[v4]: https://lkml.org/lkml/2015/8/17/141
[v5]: https://lkml.org/lkml/2015/8/25/238
[v6]: https://lkml.org/lkml/2015/9/1/177
[v7]: https://lkml.org/lkml/2015/9/20/193
[v8]: http://www.kernelhub.org/?msg=853553&p=2
[v9]: https://lkml.org/lkml/2015/10/13/998
[v10]: https://lkml.org/lkml/2015/10/19/139
[v11]: https://lkml.org/lkml/2015/10/22/206
Ley Foon Tan (6):
arm: add msi.h to Kbuild
pci: add Altera PCI vendor ID
pci:host: Add Altera PCIe host controller driver
pci: altera: Add Altera PCIe MSI driver
Documentation: dt-bindings: pci: altera pcie device tree binding
MAINTAINERS: Add Altera PCIe and MSI drivers maintainer
.../devicetree/bindings/pci/altera-pcie-msi.txt | 28 + .../devicetree/bindings/pci/altera-pcie.txt | 49 ++ MAINTAINERS | 16 + arch/arm/include/asm/Kbuild | 1 + drivers/pci/host/Kconfig | 16 + drivers/pci/host/Makefile | 2 + drivers/pci/host/pcie-altera-msi.c | 314 +++++++++++ drivers/pci/host/pcie-altera.c | 580 +++++++++++++++++++++ include/linux/pci_ids.h | 2 + 9 files changed, 1008 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt create mode 100644 drivers/pci/host/pcie-altera-msi.c create mode 100644 drivers/pci/host/pcie-altera.c
Signature · 1 line
1.8.2.1
PATCH v12 1/6 arm: add msi.h to Kbuild
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error:
"include/linux/msi.h:123:21: fatal error: asm/msi.h:
No such file or directory"
--- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+)
arch/arm/include/asm/Kbuild +1 -0
@@ -14,6 +14,7 @@ generic-y += local.h generic-y += local64.h generic-y += mm-arch-hooks.h generic-y += msgbuf.h +generic-y += msi.h generic-y += param.h generic-y += parport.h generic-y += poll.h
Signature · 1 line
1.8.2.1
PATCH v12 2/6 pci: add Altera PCI vendor ID
In reply to Ley Foon Tan--- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+)
include/linux/pci_ids.h +2 -0
@@ -1550,6 +1550,8 @@#define PCI_DEVICE_ID_SERVERWORKS_CSB6LPC 0x0227#define PCI_DEVICE_ID_SERVERWORKS_HT1100LD 0x0408 +#define PCI_VENDOR_ID_ALTERA 0x1172 +#define PCI_VENDOR_ID_SBE 0x1176#define PCI_DEVICE_ID_SBE_WANXL100 0x0301#define PCI_DEVICE_ID_SBE_WANXL200 0x0302
Signature · 1 line
1.8.2.1
PATCH v12 3/6 pci:host: Add Altera PCIe host controller driver
In reply to Ley Foon TanThis patch adds the Altera PCIe host controller driver.
--- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 580 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 589 insertions(+) create mode 100644 drivers/pci/host/pcie-altera.c
drivers/pci/host/Kconfig +8 -0
@@ -145,4 +145,12 @@ config PCIE_IPROC_BCMA Say Y here if you want to use the Broadcom iProc PCIe controller through the BCMA bus interface +config PCIE_ALTERA + bool "Altera PCIe controller" + depends on ARM || NIOS2 + select PCI_DOMAINS + help + Say Y here if you want to enable PCIe controller support on Altera + FPGA. + endmenu
drivers/pci/host/Makefile +1 -0
@@ -17,3 +17,4 @@ obj-$(CONFIG_PCI_VERSATILE) += pci-versatile.o obj-$(CONFIG_PCIE_IPROC) += pcie-iproc.o obj-$(CONFIG_PCIE_IPROC_PLATFORM) += pcie-iproc-platform.o obj-$(CONFIG_PCIE_IPROC_BCMA) += pcie-iproc-bcma.o +obj-$(CONFIG_PCIE_ALTERA) += pcie-altera.o
drivers/pci/host/pcie-altera.c new file +580 -0
580 lines not on this page · raw message
Signature · 1 line
1.8.2.1
PATCH v12 4/6 pci: altera: Add Altera PCIe MSI driver
In reply to Ley Foon TanThis patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter.
--- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera-msi.c | 314 +++++++++++++++++++++++++++++++++++++ 3 files changed, 323 insertions(+) create mode 100644 drivers/pci/host/pcie-altera-msi.c
drivers/pci/host/Kconfig +8 -0
@@ -153,4 +153,12 @@ config PCIE_ALTERA Say Y here if you want to enable PCIe controller support on Altera FPGA. +config PCIE_ALTERA_MSI + bool "Altera PCIe MSI feature" + depends on PCI_MSI + select PCI_MSI_IRQ_DOMAIN + help + Say Y here if you want PCIe MSI support for the Altera FPGA. + This MSI driver supports Altera MSI to GIC controller IP. + endmenu
drivers/pci/host/Makefile +1 -0
@@ -18,3 +18,4 @@ obj-$(CONFIG_PCIE_IPROC) += pcie-iproc.o obj-$(CONFIG_PCIE_IPROC_PLATFORM) += pcie-iproc-platform.o obj-$(CONFIG_PCIE_IPROC_BCMA) += pcie-iproc-bcma.o obj-$(CONFIG_PCIE_ALTERA) += pcie-altera.o +obj-$(CONFIG_PCIE_ALTERA_MSI) += pcie-altera-msi.o
drivers/pci/host/pcie-altera-msi.c new file +314 -0
314 lines not on this page · raw message
Signature · 1 line
1.8.2.1
PATCH v12 5/6 Documentation: dt-bindings: pci: altera pcie device tree binding
In reply to Ley Foon TanThis patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver.
--- .../devicetree/bindings/pci/altera-pcie-msi.txt | 28 +++++++++++++ .../devicetree/bindings/pci/altera-pcie.txt | 49 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt
Documentation/devicetree/bindings/pci/altera-pcie-msi.txt new file +28 -0
@@ -0,0 +1,28 @@ +* Altera PCIe MSI controller + +Required properties: +- compatible: should contain "altr,msi-1.0" +- reg: specifies the physical base address of the controller and + the length of the memory mapped region. +- reg-names: must include the following entries: + "csr": CSR registers + "vector_slave": vectors slave port region +- interrupt-parent: interrupt source phandle. +- interrupts: specifies the interrupt source of the parent interrupt + controller. The format of the interrupt specifier depends on the + parent interrupt controller. +- num-vectors: number of vectors, range 1 to 32. +- msi-controller: indicates that this is MSI controller node + + +Example +msi0: msi at 0xFF200000 { + compatible = "altr,msi-1.0"; + reg = <0xFF200000 0x00000010 + 0xFF200010 0x00000080>; + reg-names = "csr", "vector_slave"; + interrupt-parent = <&hps_0_arm_gic_0>; + interrupts = <0 42 4>; + msi-controller; + num-vectors = <32>; +};
Documentation/devicetree/bindings/pci/altera-pcie.txt new file +49 -0
49 lines not on this page · raw message
Signature · 1 line
1.8.2.1
PATCH v12 6/6 MAINTAINERS: Add Altera PCIe and MSI drivers maintainer
In reply to Ley Foon Tan--- MAINTAINERS | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
MAINTAINERS +16 -0
@@ -7958,6 +7958,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86/kernel/quirks.c +PCI DRIVER FOR ALTERA PCIE IP +M: Ley Foon Tan <[email protected]> +L: rfi at lists.rocketboards.org (moderated for non-subscribers) +L: linux-pci at vger.kernel.org +S: Supported +F: Documentation/devicetree/bindings/pci/altera-pcie.txt +F: drivers/pci/host/pcie-altera.c + PCI DRIVER FOR ARM VERSATILE PLATFORM M: Rob Herring <[email protected]> L: linux-pci at vger.kernel.org
@@ -8059,6 +8067,14 @@ L: linux-pci at vger.kernel.org S: Maintained F: drivers/pci/host/*spear* +PCI MSI DRIVER FOR ALTERA MSI IP +M: Ley Foon Tan <[email protected]> +L: rfi at lists.rocketboards.org (moderated for non-subscribers) +L: linux-pci at vger.kernel.org +S: Supported +F: Documentation/devicetree/bindings/pci/altera-pcie-msi.txt +F: drivers/pci/host/pcie-altera-msi.c + PCI MSI DRIVER FOR APPLIEDMICRO XGENE M: Duc Dang <[email protected]> L: linux-pci at vger.kernel.org
Signature · 1 line
1.8.2.1
Bjorn Helgaas
AppliedHi Ley,
Quoted 37 lines · Ley Foon Tan
This is the 12th version of patch set to add support for Altera PCIe host controller with MSI feature on Altera FPGA device families. This patchset mainly resovle the comments from Bjorn.
This patchset is based on v4.3-rc6.
v11->v12changes:
- pcie-altera: useDECLARE_PCI_FIXUP_EARLYfor pcie retrain fixup
- pcie-altera: movepcie_bus_configure_settingsbeforepci_bus_add_devices
- pcie-altera: add %d for irq bit indev_err()
- pcie-altera: prevent enumeration of root complex resources in config accessors
- Documentation: add Acked-by from Rob HerringHistory:
-------
[v1]: https://lkml.org/lkml/2015/7/28/395
[v2]: https://lkml.org/lkml/2015/7/31/267
[v3]: http://www.kernelhub.org/?msg=811940&p=2
[v4]: https://lkml.org/lkml/2015/8/17/141
[v5]: https://lkml.org/lkml/2015/8/25/238
[v6]: https://lkml.org/lkml/2015/9/1/177
[v7]: https://lkml.org/lkml/2015/9/20/193
[v8]: http://www.kernelhub.org/?msg=853553&p=2
[v9]: https://lkml.org/lkml/2015/10/13/998
[v10]: https://lkml.org/lkml/2015/10/19/139
[v11]: https://lkml.org/lkml/2015/10/22/206Ley Foon Tan (6):
arm: addmsi.htoKbuild
pci: add Altera PCI vendor ID
pci:host: Add Altera PCIe host controller driver
pci: altera: Add Altera PCIe MSI driver
Documentation: dt-bindings: pci: altera pcie device tree binding
MAINTAINERS: Add Altera PCIe and MSI drivers maintainer
Quoted 14 lines
.../devicetree/bindings/pci/altera-pcie-msi.txt | 28 + .../devicetree/bindings/pci/altera-pcie.txt | 49 ++ MAINTAINERS | 16 + arch/arm/include/asm/Kbuild | 1 + drivers/pci/host/Kconfig | 16 + drivers/pci/host/Makefile | 2 + drivers/pci/host/pcie-altera-msi.c | 314 +++++++++++ drivers/pci/host/pcie-altera.c | 580 +++++++++++++++++++++ include/linux/pci_ids.h | 2 + 9 files changed, 1008 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt create mode 100644 drivers/pci/host/pcie-altera-msi.c create mode 100644 drivers/pci/host/pcie-altera.c
I applied these to pci/host-altera for v4.4, thanks!
I squashed these into three patches:
- add msi.h to Kbuild
- add Altera host driver (including DT binding and MAINTAINERS update)
- add Altera MSI driver (including DT binding and MAINTAINERS update)
Since the convention is to add PCI ID #defines only when they are used in multiple places, I replaced PCI_VENDOR_ID_ALTERA with 0x1172 in the single place it is used.
Bjorn
Quoted 59 lines · Bjorn Helgaas
Hi Ley,
Quoted 37 lines · Ley Foon Tan
This is the 12th version of patch set to add support for Altera PCIe host controller with MSI feature on Altera FPGA device families. This patchset mainly resovle the comments from Bjorn.
This patchset is based on v4.3-rc6.
v11->v12changes:
- pcie-altera: useDECLARE_PCI_FIXUP_EARLYfor pcie retrain fixup
- pcie-altera: movepcie_bus_configure_settingsbeforepci_bus_add_devices
- pcie-altera: add %d for irq bit indev_err()
- pcie-altera: prevent enumeration of root complex resources in config accessors
- Documentation: add Acked-by from Rob HerringHistory:
-------
[v1]: https://lkml.org/lkml/2015/7/28/395
[v2]: https://lkml.org/lkml/2015/7/31/267
[v3]: http://www.kernelhub.org/?msg=811940&p=2
[v4]: https://lkml.org/lkml/2015/8/17/141
[v5]: https://lkml.org/lkml/2015/8/25/238
[v6]: https://lkml.org/lkml/2015/9/1/177
[v7]: https://lkml.org/lkml/2015/9/20/193
[v8]: http://www.kernelhub.org/?msg=853553&p=2
[v9]: https://lkml.org/lkml/2015/10/13/998
[v10]: https://lkml.org/lkml/2015/10/19/139
[v11]: https://lkml.org/lkml/2015/10/22/206Ley Foon Tan (6):
arm: addmsi.htoKbuild
pci: add Altera PCI vendor ID
pci:host: Add Altera PCIe host controller driver
pci: altera: Add Altera PCIe MSI driver
Documentation: dt-bindings: pci: altera pcie device tree binding
MAINTAINERS: Add Altera PCIe and MSI drivers maintainerQuoted 14 lines
.../devicetree/bindings/pci/altera-pcie-msi.txt | 28 + .../devicetree/bindings/pci/altera-pcie.txt | 49 ++ MAINTAINERS | 16 + arch/arm/include/asm/Kbuild | 1 + drivers/pci/host/Kconfig | 16 + drivers/pci/host/Makefile | 2 + drivers/pci/host/pcie-altera-msi.c | 314 +++++++++++ drivers/pci/host/pcie-altera.c | 580 +++++++++++++++++++++ include/linux/pci_ids.h | 2 + 9 files changed, 1008 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt create mode 100644 drivers/pci/host/pcie-altera-msi.c create mode 100644 drivers/pci/host/pcie-altera.cI applied these to pci/host-altera for v4.4, thanks!
I squashed these into three patches:
Quoted 7 lines
- add
msi.htoKbuild
- add Altera host driver (including DT binding andMAINTAINERSupdate)
- add Altera MSI driver (including DT binding andMAINTAINERSupdate)Since the convention is to add PCI ID #defines only when they are used in multiple places, I replaced
PCI_VENDOR_ID_ALTERAwith0x1172in the single place it is used.
Hi Bjorn
Thanks for applied these.
By the way, I can't see pci/host-altera branch in your pci.git tree yet. It takes some time to appear there?
Regards
Ley Foon
Bjorn Helgaas
maintainerQuoted 67 lines · Ley Foon Tan
Quoted 59 lines · Bjorn Helgaas
Hi Ley,
Quoted 37 lines · Ley Foon Tan
This is the 12th version of patch set to add support for Altera PCIe host controller with MSI feature on Altera FPGA device families. This patchset mainly resovle the comments from Bjorn.
This patchset is based on v4.3-rc6.
v11->v12changes:
- pcie-altera: useDECLARE_PCI_FIXUP_EARLYfor pcie retrain fixup
- pcie-altera: movepcie_bus_configure_settingsbeforepci_bus_add_devices
- pcie-altera: add %d for irq bit indev_err()
- pcie-altera: prevent enumeration of root complex resources in config accessors
- Documentation: add Acked-by from Rob HerringHistory:
-------
[v1]: https://lkml.org/lkml/2015/7/28/395
[v2]: https://lkml.org/lkml/2015/7/31/267
[v3]: http://www.kernelhub.org/?msg=811940&p=2
[v4]: https://lkml.org/lkml/2015/8/17/141
[v5]: https://lkml.org/lkml/2015/8/25/238
[v6]: https://lkml.org/lkml/2015/9/1/177
[v7]: https://lkml.org/lkml/2015/9/20/193
[v8]: http://www.kernelhub.org/?msg=853553&p=2
[v9]: https://lkml.org/lkml/2015/10/13/998
[v10]: https://lkml.org/lkml/2015/10/19/139
[v11]: https://lkml.org/lkml/2015/10/22/206Ley Foon Tan (6):
arm: addmsi.htoKbuild
pci: add Altera PCI vendor ID
pci:host: Add Altera PCIe host controller driver
pci: altera: Add Altera PCIe MSI driver
Documentation: dt-bindings: pci: altera pcie device tree binding
MAINTAINERS: Add Altera PCIe and MSI drivers maintainerQuoted 14 lines
.../devicetree/bindings/pci/altera-pcie-msi.txt | 28 + .../devicetree/bindings/pci/altera-pcie.txt | 49 ++ MAINTAINERS | 16 + arch/arm/include/asm/Kbuild | 1 + drivers/pci/host/Kconfig | 16 + drivers/pci/host/Makefile | 2 + drivers/pci/host/pcie-altera-msi.c | 314 +++++++++++ drivers/pci/host/pcie-altera.c | 580 +++++++++++++++++++++ include/linux/pci_ids.h | 2 + 9 files changed, 1008 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt create mode 100644 drivers/pci/host/pcie-altera-msi.c create mode 100644 drivers/pci/host/pcie-altera.cI applied these to pci/host-altera for v4.4, thanks!
I squashed these into three patches:
Quoted 7 lines
- add
msi.htoKbuild
- add Altera host driver (including DT binding andMAINTAINERSupdate)
- add Altera MSI driver (including DT binding andMAINTAINERSupdate)Since the convention is to add PCI ID #defines only when they are used in multiple places, I replaced
PCI_VENDOR_ID_ALTERAwith0x1172in the single place it is used.
Quoted 6 lines
Hi Bjorn
Thanks for applied these.
By the way, I can't see pci/host-altera branch in your pci.git tree yet. It takes some time to appear there?
Sorry, I forgot to push it. It should be there now!
Bjorn
Quoted 68 lines · Bjorn Helgaas
Quoted 67 lines · Ley Foon Tan
Quoted 66 lines · Bjorn Helgaas
Hi Ley,
Quoted 37 lines · Ley Foon Tan
This is the 12th version of patch set to add support for Altera PCIe host controller with MSI feature on Altera FPGA device families. This patchset mainly resovle the comments from Bjorn.
This patchset is based on v4.3-rc6.
v11->v12changes:
- pcie-altera: useDECLARE_PCI_FIXUP_EARLYfor pcie retrain fixup
- pcie-altera: movepcie_bus_configure_settingsbeforepci_bus_add_devices
- pcie-altera: add %d for irq bit indev_err()
- pcie-altera: prevent enumeration of root complex resources in config accessors
- Documentation: add Acked-by from Rob HerringHistory:
-------
[v1]: https://lkml.org/lkml/2015/7/28/395
[v2]: https://lkml.org/lkml/2015/7/31/267
[v3]: http://www.kernelhub.org/?msg=811940&p=2
[v4]: https://lkml.org/lkml/2015/8/17/141
[v5]: https://lkml.org/lkml/2015/8/25/238
[v6]: https://lkml.org/lkml/2015/9/1/177
[v7]: https://lkml.org/lkml/2015/9/20/193
[v8]: http://www.kernelhub.org/?msg=853553&p=2
[v9]: https://lkml.org/lkml/2015/10/13/998
[v10]: https://lkml.org/lkml/2015/10/19/139
[v11]: https://lkml.org/lkml/2015/10/22/206Ley Foon Tan (6):
arm: addmsi.htoKbuild
pci: add Altera PCI vendor ID
pci:host: Add Altera PCIe host controller driver
pci: altera: Add Altera PCIe MSI driver
Documentation: dt-bindings: pci: altera pcie device tree binding
MAINTAINERS: Add Altera PCIe and MSI drivers maintainerQuoted 14 lines
.../devicetree/bindings/pci/altera-pcie-msi.txt | 28 + .../devicetree/bindings/pci/altera-pcie.txt | 49 ++ MAINTAINERS | 16 + arch/arm/include/asm/Kbuild | 1 + drivers/pci/host/Kconfig | 16 + drivers/pci/host/Makefile | 2 + drivers/pci/host/pcie-altera-msi.c | 314 +++++++++++ drivers/pci/host/pcie-altera.c | 580 +++++++++++++++++++++ include/linux/pci_ids.h | 2 + 9 files changed, 1008 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt create mode 100644 drivers/pci/host/pcie-altera-msi.c create mode 100644 drivers/pci/host/pcie-altera.cI applied these to pci/host-altera for v4.4, thanks!
I squashed these into three patches:
- add
msi.htoKbuild
- add Altera host driver (including DT binding andMAINTAINERSupdate)
- add Altera MSI driver (including DT binding andMAINTAINERSupdate)Since the convention is to add PCI ID #defines only when they are used in multiple places, I replaced
PCI_VENDOR_ID_ALTERAwith0x1172in the single place it is used.
Quoted 9 lines
Quoted 6 lines
Hi Bjorn
Thanks for applied these.
By the way, I can't see pci/host-altera branch in your pci.git tree yet. It takes some time to appear there?
Sorry, I forgot to push it. It should be there now!
Yes, saw it now. It will merge to 'next' branch eventually?
Thanks!
Regards
Ley Foon
Quoted 71 lines · Ley Foon Tan
Quoted 70 lines · Bjorn Helgaas
Quoted 69 lines · Ley Foon Tan
Quoted 59 lines · Bjorn Helgaas
Hi Ley,
Quoted 37 lines · Ley Foon Tan
This is the 12th version of patch set to add support for Altera PCIe host controller with MSI feature on Altera FPGA device families. This patchset mainly resovle the comments from Bjorn.
This patchset is based on v4.3-rc6.
v11->v12changes:
- pcie-altera: useDECLARE_PCI_FIXUP_EARLYfor pcie retrain fixup
- pcie-altera: movepcie_bus_configure_settingsbeforepci_bus_add_devices
- pcie-altera: add %d for irq bit indev_err()
- pcie-altera: prevent enumeration of root complex resources in config accessors
- Documentation: add Acked-by from Rob HerringHistory:
-------
[v1]: https://lkml.org/lkml/2015/7/28/395
[v2]: https://lkml.org/lkml/2015/7/31/267
[v3]: http://www.kernelhub.org/?msg=811940&p=2
[v4]: https://lkml.org/lkml/2015/8/17/141
[v5]: https://lkml.org/lkml/2015/8/25/238
[v6]: https://lkml.org/lkml/2015/9/1/177
[v7]: https://lkml.org/lkml/2015/9/20/193
[v8]: http://www.kernelhub.org/?msg=853553&p=2
[v9]: https://lkml.org/lkml/2015/10/13/998
[v10]: https://lkml.org/lkml/2015/10/19/139
[v11]: https://lkml.org/lkml/2015/10/22/206Ley Foon Tan (6):
arm: addmsi.htoKbuild
pci: add Altera PCI vendor ID
pci:host: Add Altera PCIe host controller driver
pci: altera: Add Altera PCIe MSI driver
Documentation: dt-bindings: pci: altera pcie device tree binding
MAINTAINERS: Add Altera PCIe and MSI drivers maintainerQuoted 14 lines
.../devicetree/bindings/pci/altera-pcie-msi.txt | 28 + .../devicetree/bindings/pci/altera-pcie.txt | 49 ++ MAINTAINERS | 16 + arch/arm/include/asm/Kbuild | 1 + drivers/pci/host/Kconfig | 16 + drivers/pci/host/Makefile | 2 + drivers/pci/host/pcie-altera-msi.c | 314 +++++++++++ drivers/pci/host/pcie-altera.c | 580 +++++++++++++++++++++ include/linux/pci_ids.h | 2 + 9 files changed, 1008 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt create mode 100644 Documentation/devicetree/bindings/pci/altera-pcie.txt create mode 100644 drivers/pci/host/pcie-altera-msi.c create mode 100644 drivers/pci/host/pcie-altera.cI applied these to pci/host-altera for v4.4, thanks!
I squashed these into three patches:
Quoted 7 lines
- add
msi.htoKbuild
- add Altera host driver (including DT binding andMAINTAINERSupdate)
- add Altera MSI driver (including DT binding andMAINTAINERSupdate)Since the convention is to add PCI ID #defines only when they are used in multiple places, I replaced
PCI_VENDOR_ID_ALTERAwith0x1172in the single place it is used.Hi Bjorn
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Thanks for applied these.
By the way, I can't see pci/host-altera branch in your pci.git tree yet. It takes some time to appear there?
Sorry, I forgot to push it. It should be there now!
Yes, saw it now. It will merge to 'next' branch eventually?
Yep, I just merged it to 'next' and pushed it.
Bjorn
Quoted 16 lines · Bjorn Helgaas
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 5 lines
I applied these to pci/host-altera for v4.4, thanks!
I squashed these into three patches:
Quoted 7 lines
- add
msi.htoKbuild
- add Altera host driver (including DT binding andMAINTAINERSupdate)
- add Altera MSI driver (including DT binding andMAINTAINERSupdate)Since the convention is to add PCI ID #defines only when they are used in multiple places, I replaced
PCI_VENDOR_ID_ALTERAwith0x1172in the single place it is used.Hi Bjorn
Thanks for applied these.
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
By the way, I can't see pci/host-altera branch in your pci.git tree yet. It takes some time to appear there?
Sorry, I forgot to push it. It should be there now!
Yes, saw it now. It will merge to 'next' branch eventually?
Yep, I just merged it to 'next' and pushed it.
Saw it. Thanks!
Regards
Ley Foon