From patchwork Tue Oct 16 01:26:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 148898 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4474043lji; Mon, 15 Oct 2018 18:26:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV60BeHOqHrxSySC1D9lY+7+8tLG+WIeO6pu2+oRK8EA9CKy8US0rN/GWUXvh7qHh3ym4Pjxq X-Received: by 2002:a62:2fc1:: with SMTP id v184-v6mr19944212pfv.115.1539653180557; Mon, 15 Oct 2018 18:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539653180; cv=none; d=google.com; s=arc-20160816; b=LOj7ulI9Uo0eFWZny8YYiWJ5oiyLkCz/OnuqeCHsRMaffhGeA/vGRJ8hApP/1sieET xJmCQ7GDK0RyOqFtaGgHl6KAuuGcT9H233RRGguYcd2HDhrVn82GHyw3fqN3X/4/pDBe mBPjSeNOVFNhx6NyQlw5DJ0jd/Ss1YsBg2ruOkUQUQaaTcud0TGe6NzWxmBwmg3SxPn+ UE9vL09r2YRNIe0gZwF7FDWdhirYywrmBjAuGO7i2QA0lCKCU0mNx0+pBvQQa5+Bzl0r IxNOSBoAvNtEzZHICngFaIHeF49kYo+VdwkNYiIdchubqStCcnP46o7FFAIWa5RQ6lao kjLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=DgD+2QJ+ofSzj+0jXitOQ3DC9HYOKbxE2XceQx5oudI=; b=nwJYVHhuvAfTt9/GPGE+QIhujDkVfpqtEHt8uRqBELSbVNTeeM7imzfPScSeaZ3cfK LC/nJNSbOKAwrnVJp9abqOEQdykTEZkfsmHscpfMVvaNqyl11qaN34rGMNnrIUZi1lDw QgnDlP7RvL/++o76954Xq2+e+SXFBrLz7CAnWWoTvZFWzOGEDD8YXzZ6VsWa6Czj4esK WyewlTI2TMoP4g4d9MH26MuWcquZgdO2RDpvPhp+xG6+n8ZV6OZOnkNHpI4aL8YadHa6 aJ6mWSQnHvWmrf56HhACeRkR/iYAXlDYhpSfHhW0RTSsNBtxwvO8bLIg04eZyKO5i5LP Qj6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r59-v6si10845430plb.6.2018.10.15.18.26.20; Mon, 15 Oct 2018 18:26:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbeJPJOI (ORCPT + 32 others); Tue, 16 Oct 2018 05:14:08 -0400 Received: from mx.socionext.com ([202.248.49.38]:26267 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbeJPJOI (ORCPT ); Tue, 16 Oct 2018 05:14:08 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 16 Oct 2018 10:26:15 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id EF6E16006C; Tue, 16 Oct 2018 10:26:15 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 16 Oct 2018 10:26:15 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 27A611A1210; Tue, 16 Oct 2018 10:26:15 +0900 (JST) From: Kunihiko Hayashi To: Lorenzo Pieralisi , Bjorn Helgaas , Rob Herring , Mark Rutland , Masahiro Yamada Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Gustavo Pimentel , Kunihiko Hayashi Subject: [PATCH v3 0/2] add new UniPhier PCIe host driver Date: Tue, 16 Oct 2018 10:26:06 +0900 Message-Id: <1539653168-22862-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds PCIe host controller driver for Socionext UniPhier SoCs. This controller is based on the DesignWare PCIe core. This driver supports LD20 and PXs3 SoCs. v2: https://www.spinics.net/lists/linux-pci/msg75930.html About legacy IRQ, it might be necessary to share common view from keystone driver that have been cleaned up[1]. [1] https://lore.kernel.org/patchwork/patch/989541/ Changes since v2: - dt-bindings: remove a comment that the node name isn't important - dt-bindings: remove "intx" interrupt - dt-bindings: define 'legacy-interrupt-controller' node and its properties - return an error value when link up fails - remove devm_request_irq() and a handler for MSI IRQ - use chained interrupt instead of devm_request_irq() for legacy IRQ - add unipher_pcie_config_legacy_irq() to get legacy IRQ from 'legacy-interrupt controller' node - replace 4 statments to handle INTX with for_each_set_bit() - remove initialization of pp->root_bus_nr - remove indivisual interrupt enable bit definitions - rename 'irq_domain' member to 'legacy_irq_domain' in private structure - use pci_irqd_intx_xlate() for irq_domain_ops.xlate function Changes since v1: - follow capitalization conventions in the descriptions - use C style comments except for the SPDX line Kunihiko Hayashi (2): dt-bindings: PCI: Add UniPhier PCIe host controller description PCI: uniphier: Add UniPhier PCIe host controller support .../devicetree/bindings/pci/uniphier-pcie.txt | 81 ++++ drivers/pci/controller/dwc/Kconfig | 9 + drivers/pci/controller/dwc/Makefile | 1 + drivers/pci/controller/dwc/pcie-uniphier.c | 432 +++++++++++++++++++++ 4 files changed, 523 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/uniphier-pcie.txt create mode 100644 drivers/pci/controller/dwc/pcie-uniphier.c -- 2.7.4