Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1991080ybg; Fri, 5 Jun 2020 02:46:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyrO5+H8n6v8THM8FArRoabCxD9wejHw/HSaWZtjsYw5POhKrPFbLUdxDGZfbhZtaklpiU X-Received: by 2002:a50:b961:: with SMTP id m88mr8573232ede.4.1591350410677; Fri, 05 Jun 2020 02:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591350410; cv=none; d=google.com; s=arc-20160816; b=y0HrquGOegznt9Sxc3HI0yAOlEBrkVMkvyCFLdx7ptGi5sfkCMRu2/BWGLDbORrW51 xyK6TlicltAPeCCx4QX+YOCabHE+VH92BJfRC1nmp7ui/IW3WhMa3HLuJ4v65pkn82ep vL084VBPYYO+xsHAwoPg9HJAGTQvFqPEcsn1/8+pcShloxpHVqR/sTT6c6f0HtZNcJyd Nel1Zr7e0uyyFgVex/flxSU3uMmYzx1BW7OI8KF1JOpcL09YiO8TCsreirpTETyrWFB6 pJepYXs1UijTIw5GkvOsML1dcGLX/16EnrDwdg8qlcEPjFnSrjb7NjWlyNHeAZdIKSf0 997g== 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=o+27KvVLwvAhRWZMaHcMvRLgi3cJRr6Z2t7BMTr05jQ=; b=gVtae49hPcldhtPPNNRdTcfNgP3JwoAGuPrYkHz6b2WjTGa6TeuCicIAexDUHzDfbJ km4I9Bo2HE3miq5K5pZlz/kpz+QKZp/Op/qOdFbD3QRhGGObM9Lekj3Y+iOhJzifxwec KKH+2GnsGPD3GXaxbcT8I5BD3SuND9JdI2WyxVrLmyf5+KfAgoXoDGml4Z+DqiMCl9W4 ayu78cQpclrwU5Vhl4RIK4tYjZZImRxTfYxJsvPb7hgdHvJhIY9kZwoLzA8mP4Zh9ED4 NlNE3y8+8PRJ1i5SMA8CPQW0y/LT8Kzlo1F8rOrhyEPGY2RJB4ghNS63oXxI1FHo9mMs R0XA== 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 f3si3210024edw.282.2020.06.05.02.46.28; Fri, 05 Jun 2020 02:46:50 -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 S1726368AbgFEJom (ORCPT + 99 others); Fri, 5 Jun 2020 05:44:42 -0400 Received: from mx.socionext.com ([202.248.49.38]:45667 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbgFEJol (ORCPT ); Fri, 5 Jun 2020 05:44:41 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 05 Jun 2020 18:44:39 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 8EA4A18010B; Fri, 5 Jun 2020 18:44:39 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 5 Jun 2020 18:44:39 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id EF85B1A12AD; Fri, 5 Jun 2020 18:44:38 +0900 (JST) From: Kunihiko Hayashi To: Bjorn Helgaas , Lorenzo Pieralisi , 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 v4 0/6] PCI: uniphier: Add features for UniPhier PCIe host controller Date: Fri, 5 Jun 2020 18:44:30 +0900 Message-Id: <1591350276-15816-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 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: 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 PCI: uniphier: Use devm_platform_ioremap_resource_byname() .../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 | 73 +++++++++++++++++----- 4 files changed, 63 insertions(+), 15 deletions(-) -- 2.7.4