Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2108905pxa; Fri, 7 Aug 2020 03:26:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtZlnfKugQNgPMos2LLRY7Y+kwtXHlYAvG40Nh0QQeLDFcK0K9hcD7/I3r4TRVtwZxp9HW X-Received: by 2002:aa7:d8d8:: with SMTP id k24mr8571089eds.32.1596795981727; Fri, 07 Aug 2020 03:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596795981; cv=none; d=google.com; s=arc-20160816; b=ut6AFZIDcDMcdGulPJZhRmMiAV2Kj0wzJbchHzxFdAMhqifOs+PqEJrQUVUZlMF/Kd McJKbHPZrELZqgQWrsjV8UdpSnNluVhC9U2z9qvsG8Li8typZZayMTstn3S2SAKB15lu eFZ6TFf/EdWmock3e+3SEeFbXim1NJRCwnwqZjVJY3WX4wTA7k7tmHlV/wceWP3zWXui lnLoikEGmuxUIhhVWDPjNvRNWbAbWUP4+66w99JYPW0QuGtBbtpbd2PXwlwR20Uamok8 /zh6dHtUA4H28Q9jskBTZhHc/LgvDFQGTJIciGR0xzp5MC3DeEhuhCj7n6XYa9kqXWe4 Ixvw== 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=GCl5UNGdcovokhuyCncUYeLyE+faK738hyFu1obYz80=; b=f9X3TYeWQ56iRlbfLmckGhH5WEnOXzK71DrhIL3ib8kpcf2zBuQHvDv68bzVxAdq6D 9QoDv08L30ednDwDyRlTKnZuKln9wZN1nnXYWr4qncHuiOu9NplZdddiFLF7EK6jmFI4 8LFssQ0aAqXH+k2ATuy7F+DoQVU51Ys4i7QfktQ1IkcmvV1lyMVWkwPfl7CasImlhMeg THghZunBw0kdXBr7Y+5pvXOOXq1qxacajIPOYOucQWApXZCcitqixGjcPeunuXRuVJQ0 ySEQ5o3Zab1eWC7wiayjuh4ZOf+UEJfa4BX5r67mNST/WfF5ZnNPI1TU4Vg/mpDW+sTd 9v5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si4748879edr.374.2020.08.07.03.25.58; Fri, 07 Aug 2020 03:26:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728160AbgHGKZ3 (ORCPT + 99 others); Fri, 7 Aug 2020 06:25:29 -0400 Received: from mx.socionext.com ([202.248.49.38]:31561 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbgHGKZ3 (ORCPT ); Fri, 7 Aug 2020 06:25:29 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 07 Aug 2020 19:25:27 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id E8E1560060; Fri, 7 Aug 2020 19:25:27 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 7 Aug 2020 19:25:27 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 749781A0507; Fri, 7 Aug 2020 19:25:27 +0900 (JST) From: Kunihiko Hayashi To: Lorenzo Pieralisi , Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Rob Herring , Masahiro Yamada , Marc Zyngier 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 , Kunihiko Hayashi Subject: [PATCH v6 0/6] PCI: uniphier: Add features for UniPhier PCIe host controller Date: Fri, 7 Aug 2020 19:25:16 +0900 Message-Id: <1596795922-705-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 some features for UniPhier PCIe host controller. - Add support for PME and AER invoked by MSI interrupt - Add iATU register view support for PCIe version >= 4.80 - Add an error message when failing to get phy driver This adds a new function called by MSI handler in DesignWare PCIe framework, that invokes PME and AER funcions to detect the factor from SoC-dependent registers. Changes since v5: - Add pcie_port_service_get_irq() function to pcie/portdrv - Call pcie_port_service_get_irq() to get vIRQ interrupt number for PME/AER - Rebase to the latest linux-next branch, and remove devm_platform_ioremap_resource_byname() replacement patch Changes since v4: - Add Acked-by: line to dwc patch Changes since v3: - Move msi_host_isr() call into dw_handle_msi_irq() - Move uniphier_pcie_misc_isr() call into the guard of chained_irq - Use a bool argument is_msi instead of pci_msi_enabled() - Consolidate handler calls for the same interrupt - Fix typos in commit messages Changes since v2: - Avoid printing phy error message in case of EPROBE_DEFER - Fix iATU register mapping method - dt-bindings: Add Acked-by: line - Fix typos in commit messages - Use devm_platform_ioremap_resource_byname() Changes since v1: - Add check if struct resource is NULL - Fix warning in the type of dev_err() argument Kunihiko Hayashi (6): PCI: portdrv: Add pcie_port_service_get_irq() function PCI: dwc: Add msi_host_isr() callback PCI: uniphier: Add misc interrupt handler to invoke PME and AER dt-bindings: PCI: uniphier: Add iATU register description PCI: uniphier: Add iATU register support PCI: uniphier: Add error message when failed to get phy .../devicetree/bindings/pci/uniphier-pcie.txt | 1 + drivers/pci/controller/dwc/pcie-designware-host.c | 3 + drivers/pci/controller/dwc/pcie-designware.h | 1 + drivers/pci/controller/dwc/pcie-uniphier.c | 90 ++++++++++++++++++---- drivers/pci/pcie/portdrv.h | 1 + drivers/pci/pcie/portdrv_core.c | 16 ++++ 6 files changed, 99 insertions(+), 13 deletions(-) -- 2.7.4