Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp703692pxx; Wed, 28 Oct 2020 15:01:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX9lZK9gH3vYL+8WhlVQ4yxQclmcI+T9XqB4BZqH1eppt6di3gFNu9SMpxnuLnJauNnO27 X-Received: by 2002:a17:906:8891:: with SMTP id ak17mr1170505ejc.176.1603922517519; Wed, 28 Oct 2020 15:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603922517; cv=none; d=google.com; s=arc-20160816; b=GyTwjcs0EasX0FVyyztXya7fA5ZUXu9UnYuIWfyNznT7u/+kzT4VeiDsfQ6sOwtb0N 4zvOkKWdsaF33+pjQb1Bokd0CdwuTX+0cv1VQsI3ZTtPF/lMuKFlnsFKxFuVjr0/rKSs T9YVhhEtKsbokQiYGWpGa6bCFMx3n5dciXAD5SRkjMtEaX1JnENOYRFvYM5IgSJAn1w4 FHSBOhWSyxYrtW3Oq7iuCxtQGLJKhpHZbg+imZS4ySG4FjUZYqPNcwnHtgoKDRGJlfjS KdD0ZoYrJI8ddMAxqUFw+Yj7W8uA/ENRsKY0Tz/BxlKD+IYmOf8P8ze8LIt0Gec9LaU8 DhjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=sw8FpOWT4k1s2lHcH7RqRH5yT/vJCOB6r3Ud1KRUAKw=; b=mHNrkVgi9Iw73qrR9wmQe9PpvjHtXVRAaycRoQOq2IiKox4KjWySxghD84tn2rGfTL 0F9DWEiggxWWBelFkb2NnsTDp1xlhzGof02mE1aTVkk66gHNYNSz8gqk0HMcg+oGQuYJ z+sl2eDr86ztnNt2xJKv2658I99Yk15P59UoI66dGr4VzZqKiVwrYVLkb4/sqXUT/0lz WlP5o6CWkgodx2oDVdLWgLF8H8O3C1R3A1YPQE/BHMhKkk0yFOO8G3oeSf2AXRdgaDXq wU41cr4eemXYCHKkw+jofxRNzqbmwQZj2i60q4mKuDrWRnONYxPno4wGh+r2gihX1Gdk aKkg== 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 o14si588101edq.11.2020.10.28.15.01.34; Wed, 28 Oct 2020 15:01:57 -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 S1729358AbgJ1V7s (ORCPT + 99 others); Wed, 28 Oct 2020 17:59:48 -0400 Received: from mx.socionext.com ([202.248.49.38]:49812 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729325AbgJ1V7p (ORCPT ); Wed, 28 Oct 2020 17:59:45 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 28 Oct 2020 10:31:54 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id B7AE560058; Wed, 28 Oct 2020 10:31:54 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 28 Oct 2020 10:31:54 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 00A931A0509; Wed, 28 Oct 2020 10:31:53 +0900 (JST) From: Kunihiko Hayashi To: Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Marc Zyngier Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH v8 0/3] PCI: uniphier: Add PME/AER support for UniPhier PCIe host controller Date: Wed, 28 Oct 2020 10:31:40 +0900 Message-Id: <1603848703-21099-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The original subject up to v6 is "PCI: uniphier: Add features for UniPhier PCIe host controller". 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. The iATU patches is split from this series as "PCI: dwc: Move iATU register mapping to common framework". Changes since v7: - Add Reviewed-by: line to 1st and 3rd patches Changes since v6: - Separate patches for iATU and phy error from this series - Add Reviewed-by: line to dwc patch 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 (3): 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 drivers/pci/controller/dwc/pcie-designware-host.c | 3 + drivers/pci/controller/dwc/pcie-designware.h | 1 + drivers/pci/controller/dwc/pcie-uniphier.c | 77 +++++++++++++++++++---- drivers/pci/pcie/portdrv.h | 1 + drivers/pci/pcie/portdrv_core.c | 16 +++++ 5 files changed, 87 insertions(+), 11 deletions(-) -- 2.7.4