Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2503556pxb; Mon, 18 Jan 2021 21:25:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJws94vXXa7NH+pv99bG4AFf47V8QDHsfv95UyqhtYa6zGN9dBX84t6UBMOLaWueBYvYHz3I X-Received: by 2002:a17:906:68d0:: with SMTP id y16mr2036122ejr.128.1611033957850; Mon, 18 Jan 2021 21:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611033957; cv=none; d=google.com; s=arc-20160816; b=teXSgT0RVQozv7p4jrUxhhb/DiDfKOTApDq7qitG1YXeJ6iChaSVx9wTQtwiLt1yCG mQ+FwSNWSi9pULcyF6IuGzkhRAOPZTPVxeaIhnJGBY0qcT7EhfkRWhhnuAMtC4R72cve ctx4gWy889xzthHdM8RR3NtTggUbI61nc96cKkbu7/wvn1sGl+F/Kv+nn5cUO3k1lE6Z Wc7ripoq7K5Pw8bEzGU/ckNE8JznI4Ev9+iWqaktFrZca4kh9U+1dYWDzSER3HACmryN Veus6Et7eHfOvYHGR3Dd84KyPeXTXmR50wCr4V9l8QEEbxTQA5+HG42H99E3NMs+j+nV LqDQ== 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=OGteMZAb1Ko9htWkacc299Dx7e6Stl/bGvpp/TH4OY4=; b=wvryuUf8j08JiF+q2k3bE1vt4bQf2gFKbdWr3+h7z4JTBCmVu7ll5oRh8+Airr38mP /0XwX8PRSskmfNH11k3RTVmwp/boJlyepm8iFmamr0t+G+4O96l6/rblXO6lHWUXCaCZ fzY+hs6rG8T73+TJzAFYQVHwUNGRrFuGfn/+xxseg8ADkCaz+lTnOGMfHxW1vx3Z2zDd aFe7keJWILVp4qkzDTqhsy7hI2Gubq1sZNSTpigaGv/EH2Fr2lCxcxPMHKDE5PpLljYa NqHYYnvFZq+MpKa6olwLimK+Xh/oaTMsGL5pFKB6ItwoLPYwWWGHyjl2luwhg8p4b11Y udqg== 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 v4si9455136edi.191.2021.01.18.21.25.27; Mon, 18 Jan 2021 21:25:57 -0800 (PST) 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 S2388322AbhARWVD (ORCPT + 99 others); Mon, 18 Jan 2021 17:21:03 -0500 Received: from mx.socionext.com ([202.248.49.38]:16088 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387894AbhARWUj (ORCPT ); Mon, 18 Jan 2021 17:20:39 -0500 Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 19 Jan 2021 07:09:54 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 846DF205902B; Tue, 19 Jan 2021 07:09:54 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 19 Jan 2021 07:09:54 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 09BC7B1D40; Tue, 19 Jan 2021 07:09:54 +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, Jassi Brar , Masami Hiramatsu , Kunihiko Hayashi Subject: [PATCH v9 0/3] PCI: uniphier: Add PME/AER support for UniPhier PCIe host controller Date: Tue, 19 Jan 2021 07:09:42 +0900 Message-Id: <1611007785-25771-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 v8: - Add uniphier_pcie_host_init_complete() that finds PME/AER vIRQ number after calling dw_pcie_host_init() - Add conditions to depend on CONFIG_PCIE_PME and CONFIG_PCIEAER instead of CONFIG_PCIEPORTBUS - Add Acked-by: line to portdrv patch 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 | 101 +++++++++++++++++++--- drivers/pci/pcie/portdrv.h | 1 + drivers/pci/pcie/portdrv_core.c | 16 ++++ 5 files changed, 110 insertions(+), 12 deletions(-) -- 2.7.4