From patchwork Fri Oct 13 16:09:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 825567 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yDCTP3CSlz9sRV for ; Sat, 14 Oct 2017 03:14:17 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751655AbdJMQJ2 (ORCPT ); Fri, 13 Oct 2017 12:09:28 -0400 Received: from bastet.se.axis.com ([195.60.68.11]:52183 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbdJMQJ1 (ORCPT ); Fri, 13 Oct 2017 12:09:27 -0400 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id B94C4185C7; Fri, 13 Oct 2017 18:09:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0QcKoaOSCdXN; Fri, 13 Oct 2017 18:09:25 +0200 (CEST) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id 0F14E182E7; Fri, 13 Oct 2017 18:09:25 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F11F91A069; Fri, 13 Oct 2017 18:09:24 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E3BDD1A066; Fri, 13 Oct 2017 18:09:24 +0200 (CEST) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP; Fri, 13 Oct 2017 18:09:24 +0200 (CEST) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by thoth.se.axis.com (Postfix) with ESMTP id D7DA7DFE; Fri, 13 Oct 2017 18:09:24 +0200 (CEST) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id D2116401A0; Fri, 13 Oct 2017 18:09:24 +0200 (CEST) From: Niklas Cassel To: linux-arm-kernel@axis.com, linux-pci@vger.kernel.org, linux-omap@vger.kernel.org Cc: Niklas Cassel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/10] dwc MSI fixes, ARTPEC-6 EP mode support, ARTPEC-7 SoC support Date: Fri, 13 Oct 2017 18:09:03 +0200 Message-Id: <20171013160914.3220-1-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.1 X-TM-AS-GCONF: 00 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This is a series that adds: - PCI endpoint mode support in the ARTPEC-6 driver. - ARTPEC-7 SoC support in the ARTPEC-6 driver (the SoCs are very similar). - Small fixes for MSI in designware-ep and designware-host, needed to get endpoint mode support working for ARTPEC-6. Niklas Cassel (10): PCI: dwc: use DMA-API for allocating MSI data PCI: designware-ep: set_msi should only set MMC bits PCI: designware-ep: read-only registers need DBI_RO_WR_EN to be writable PCI: designware-ep: pre-allocate memory for MSI in dw_pcie_ep_init PCI: artpec6: remove unused defines PCI: dwc: artpec6: use BIT and GENMASK macros PCI: dwc: artpec6: split artpec6_pcie_establish_link to smaller functions PCI: dwc: artpec6: add support for endpoint mode PCI: dwc: make cpu_addr_fixup take struct dw_pcie as argument PCI: dwc: artpec6: add support for the ARTPEC-7 SoC .../devicetree/bindings/pci/axis,artpec6-pcie.txt | 5 +- drivers/pci/dwc/Kconfig | 41 +- drivers/pci/dwc/Makefile | 4 +- drivers/pci/dwc/pci-dra7xx.c | 2 +- drivers/pci/dwc/pcie-artpec6.c | 482 +++++++++++++++++++-- drivers/pci/dwc/pcie-designware-ep.c | 20 +- drivers/pci/dwc/pcie-designware-host.c | 23 +- drivers/pci/dwc/pcie-designware.c | 2 +- drivers/pci/dwc/pcie-designware.h | 8 +- 9 files changed, 514 insertions(+), 73 deletions(-)