Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S946406AbdDTOcF (ORCPT ); Thu, 20 Apr 2017 10:32:05 -0400 Received: from mail1.bemta8.messagelabs.com ([216.82.243.205]:21589 "EHLO mail1.bemta8.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965945AbdDTOcB (ORCPT ); Thu, 20 Apr 2017 10:32:01 -0400 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPIsWRWlGSWpSXmKPExsVy+LrFKt2YYz8 iDB59M7DYsXQzk8WrM2vZLDY9vsZqcXnXHDaLs/OOs1kcWNrOYvHm9wt2i793/rFZHPzwhNWi 5ekMRovNm6YyO3B79M+ewuaxZt4aRo/+dZ9ZPTat6mTzeHfuHLvH5iX1Hp83yQWwR7Fm5iXlV ySwZvxr/stacIe74s/K+6wNjD2cXYxcHEICyxgljr9/wNLFyMnBJmAicfP+OTBbWMBU4va6+W C2iECRxPdXc1hBGpgFFjFLnH7wHMjh4OAVcJa48owLpIZFQFVi68on7CC2qECCxMU/U1hBbF4 BQYmTM5+AzWEW0Jdo2jqHGcKWl9j+FsIWEtCWeL9xMVi9hICCxNTJrcwTGHlnIWmfhaR9FpL2 BYzMqxjVi1OLylKLdC31kooy0zNKchMzc3QNDSz0clOLixPTU3MSk4r1kvNzNzECA54BCHYwr pvqfIhRkoNJSZRXbe6PCCG+pPyUyozE4oz4otKc1OJDjDIcHEoSvGeOAOUEi1LTUyvSMnOAsQ eTluDgURLh1T0KlOYtLkjMLc5Mh0idYlSUEuc9BtInAJLIKM2Da4PF+yVGWSlhXkagQ4R4ClK LcjNLUOVfMYpzMCoJ8x4EmcKTmVcCN/0V0GImoMVn/cAWlyQipKQaGK3Y49inssXUzanc/O/+ FO530WJLP/442XiCoT393RoP/Ssut15x/Hl3qmh5r8rvi5e4f/AvPe1o+toueSWvhZbhGn6jt 42LsstKl67LMQuY/TtD8lurGnPRm7OiwnMnndpa0vqhW0PvFoeoGMOpjG3JIdm3HK3O208o3i ejru0vxF9/OquGWYmlOCPRUIu5qDgRAAa2vnryAgAA X-Env-Sender: Marc_Gonzalez@sigmadesigns.com X-Msg-Ref: server-7.tower-220.messagelabs.com!1492698715!102367349!1 X-Originating-IP: [195.215.56.170] X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked From: Marc Gonzalez Subject: [PATCH v4 0/2] Tango PCIe controller support To: Bjorn Helgaas , Marc Zyngier , Thomas Gleixner CC: Robin Murphy , Lorenzo Pieralisi , Liviu Dudau , David Laight , linux-pci , Linux ARM , Thibaud Cornic , Phuong Nguyen , LKML , Mason Message-ID: Date: Thu, 20 Apr 2017 16:24:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.27.0.114] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1500 Lines: 44 Hello, This patch was split in two, to ease review of two orthogonal parts (MSI controller and host bridge). NB: the patch is just split in two where host bridge support starts. Changes from v3 to v4 In the MSI part: - Support 256 MSIs instead of only 32 - Define tango_{ack,mask,unmask} callbacks for the HW irq_chip - Use a spinlock instead of a mutex - Rename msi_mask register to msi_enable In the host bridge part: - Move several quirk-handling snippets out of the config space read function - Check whether the PCIe link is up at probe-time Other files - Let the framework compute the bus-range from the config space width - Be slightly more verbose in the Kconfig help What has *not* changed, waiting from feedback from Bjorn: - Pray that config and mem space accesses NEVER occur concurrently. - Using of_device_is_compatible() vs of_device_get_match_data() Marc Gonzalez (2): PCI: Add tango MSI controller support PCI: Add tango PCIe host bridge support Documentation/devicetree/bindings/pci/tango-pcie.txt | 32 ++++ drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-tango.c | 393 +++++++++++++++++++++++++++++++++++++++ include/linux/pci_ids.h | 2 + 5 files changed, 436 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/tango-pcie.txt create mode 100644 drivers/pci/host/pcie-tango.c -- 2.11.0