From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbdJFQjr (ORCPT ); Fri, 6 Oct 2017 12:39:47 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:48180 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbdJFQjp (ORCPT ); Fri, 6 Oct 2017 12:39:45 -0400 X-Google-Smtp-Source: AOwi7QDwO5ZKNHPW2tYRYnLP8P8hNOcpXiw/qjP1E2yz94zy2QfWmusNK4INvT70v3Wfe2fbeTmLMA== From: Ard Biesheuvel To: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Leif Lindholm , Graeme Gregory , Bjorn Helgaas , Rob Herring , Will Deacon Subject: [PATCH v4 0/2] PCI: add support for firmware initialized DesignWare RCs Date: Fri, 6 Oct 2017 17:39:17 +0100 Message-Id: <20171006163919.14898-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UEFI based systems incorporating a Synopsys DesignWare PCIe controller in RC mode will typically configure it before entering the OS. If this configuration is fully static and ECAM compliant, there is no need to expose particulars of the device to the OS, and we can simply describe it as "pci-host-ecam-generic". However, the Synopsys IP may be synthesized in a way where a quirk is needed for config space accesses to the first bus. It makes little sense to instantiate yet another pcie-designware driver that contains all the low level setup code, so instead, add some quirks handling to the generic ECAM driver. v4: - merge with pci-host-generic - add Rob's ack to the DT binding doc v3: - use SoC specific compatible strings - drop MSI patch [for now], since it turns out we may not need it v2: - use dev->fwnode directly - replace an instance of pr_err with dev_err, and clarify the error message - fix Kconfig/Makefile dependency errors reported by kbuild Cc: Leif Lindholm Cc: Graeme Gregory Cc: Bjorn Helgaas Cc: Rob Herring Cc: Will Deacon Ard Biesheuvel (2): PCI: pci-host-generic: add support for Synopsys DesignWare RC in ECAM mode dt-bindings: designware: add binding for Designware PCIe in ECAM mode Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt | 42 ++++++++++++++++++ drivers/pci/host/pci-host-generic.c | 46 ++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt -- 2.11.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: From: Ard Biesheuvel To: linux-pci@vger.kernel.org Subject: [PATCH v4 0/2] PCI: add support for firmware initialized DesignWare RCs Date: Fri, 6 Oct 2017 17:39:17 +0100 Message-Id: <20171006163919.14898-1-ard.biesheuvel@linaro.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Graeme Gregory , Ard Biesheuvel , Will Deacon , linux-kernel@vger.kernel.org, Leif Lindholm , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+bjorn=helgaas.com@lists.infradead.org List-ID: UEFI based systems incorporating a Synopsys DesignWare PCIe controller in RC mode will typically configure it before entering the OS. If this configuration is fully static and ECAM compliant, there is no need to expose particulars of the device to the OS, and we can simply describe it as "pci-host-ecam-generic". However, the Synopsys IP may be synthesized in a way where a quirk is needed for config space accesses to the first bus. It makes little sense to instantiate yet another pcie-designware driver that contains all the low level setup code, so instead, add some quirks handling to the generic ECAM driver. v4: - merge with pci-host-generic - add Rob's ack to the DT binding doc v3: - use SoC specific compatible strings - drop MSI patch [for now], since it turns out we may not need it v2: - use dev->fwnode directly - replace an instance of pr_err with dev_err, and clarify the error message - fix Kconfig/Makefile dependency errors reported by kbuild Cc: Leif Lindholm Cc: Graeme Gregory Cc: Bjorn Helgaas Cc: Rob Herring Cc: Will Deacon Ard Biesheuvel (2): PCI: pci-host-generic: add support for Synopsys DesignWare RC in ECAM mode dt-bindings: designware: add binding for Designware PCIe in ECAM mode Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt | 42 ++++++++++++++++++ drivers/pci/host/pci-host-generic.c | 46 ++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 From: ard.biesheuvel@linaro.org (Ard Biesheuvel) Date: Fri, 6 Oct 2017 17:39:17 +0100 Subject: [PATCH v4 0/2] PCI: add support for firmware initialized DesignWare RCs Message-ID: <20171006163919.14898-1-ard.biesheuvel@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org UEFI based systems incorporating a Synopsys DesignWare PCIe controller in RC mode will typically configure it before entering the OS. If this configuration is fully static and ECAM compliant, there is no need to expose particulars of the device to the OS, and we can simply describe it as "pci-host-ecam-generic". However, the Synopsys IP may be synthesized in a way where a quirk is needed for config space accesses to the first bus. It makes little sense to instantiate yet another pcie-designware driver that contains all the low level setup code, so instead, add some quirks handling to the generic ECAM driver. v4: - merge with pci-host-generic - add Rob's ack to the DT binding doc v3: - use SoC specific compatible strings - drop MSI patch [for now], since it turns out we may not need it v2: - use dev->fwnode directly - replace an instance of pr_err with dev_err, and clarify the error message - fix Kconfig/Makefile dependency errors reported by kbuild Cc: Leif Lindholm Cc: Graeme Gregory Cc: Bjorn Helgaas Cc: Rob Herring Cc: Will Deacon Ard Biesheuvel (2): PCI: pci-host-generic: add support for Synopsys DesignWare RC in ECAM mode dt-bindings: designware: add binding for Designware PCIe in ECAM mode Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt | 42 ++++++++++++++++++ drivers/pci/host/pci-host-generic.c | 46 ++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt -- 2.11.0