Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp649184pxy; Thu, 22 Apr 2021 10:09:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu+cN/R5O+LUc0v1weWBEe+6qkVS+rK7bQhaaem8KjlgEgUa6nPrewdBINyRrO23Bx527u X-Received: by 2002:a17:906:cc8e:: with SMTP id oq14mr4425811ejb.15.1619111342672; Thu, 22 Apr 2021 10:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619111342; cv=none; d=google.com; s=arc-20160816; b=bmoFlu5rQbDAsVNDDXEQ4tBeCQJs6LD1JoG6FRIggJGj1xnvr8q3NRsjSK5QWyne06 H7r6bsITHrCfmjhOGNBpq0CYaXc1RXmpdWun2mVqf1/KSSDyXgveqpuCpWH4Yuv5ml7p ZEMV7ro2fosU9phEE8en462UJxne5Kld4h7ObsM5hx3CacxBbelBQ1RjFy2M2OCHIWp6 3cQ43mYOI5ei3OacHglYwqEL9PfUjubgF0EVXyaqpNoVQiBVGN2B1nr4HBCSaS0epJZq RCZiMxv4nFp0E1DxMQiB8k0G1AHuJ4tRUhAl59KCNZyEwnPCtpqzTFX0HcmClRIWGn7m tcmg== 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=+6t+GFpWUcjGK59A6+bw8dSax8MW7eUYlH0obD0Wlf4=; b=A1ImwswlOe8yRpnEjM82b+N3gvkDBG+78nFLwVyCd1azjH443gVMk9sW5zgVK8TCWR Mxa0Ch77w33CiWEGB9Eb2vyOwKnq9v6gqcC94dnIA87IZ46DEUb+mUz1t/EDORluFxsg WqE//Yv6MtK0OLuxqFLAZO59ouoF9w9Ta0woGjXE44FDW6T4G92WwaUmWtRFjhox445f gOKwV65J5u0YWgqZPOFnTCAhlE93RERudNBUV45ynJWQW5iE8Y6vV99gs4oXIfh03sQ5 J348QUX25T4kSMk/OivoPaufzIrev2XtDA00ARQUP8HRDCifHwk5dj9sy4L6uRJBrlEH il0w== 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 d18si2822750edu.290.2021.04.22.10.08.39; Thu, 22 Apr 2021 10:09:02 -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 S236690AbhDVRF4 (ORCPT + 99 others); Thu, 22 Apr 2021 13:05:56 -0400 Received: from mx.socionext.com ([202.248.49.38]:53369 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236058AbhDVRFu (ORCPT ); Thu, 22 Apr 2021 13:05:50 -0400 Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 23 Apr 2021 02:05:09 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 07DE4205902A; Fri, 23 Apr 2021 02:05:09 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 23 Apr 2021 02:05:08 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 48C23B1D40; Fri, 23 Apr 2021 02:05:08 +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 v11 0/3] PCI: uniphier: Add PME/AER support for UniPhier PCIe host controller Date: Fri, 23 Apr 2021 02:04:54 +0900 Message-Id: <1619111097-10232-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 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 v10: - Fix comment style in the header - Fix "virq" and "vIRQ" in variable name and description to "irq" and "IRQ" Changes since v9: - Fix the description of pcie_prot_service_get_irq() Changes since v8: - Add uniphier_pcie_host_init_complete() that finds PME/AER IRQ 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 IRQ 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 | 105 +++++++++++++++++++--- drivers/pci/pcie/portdrv.h | 1 + drivers/pci/pcie/portdrv_core.c | 16 ++++ 5 files changed, 112 insertions(+), 14 deletions(-) -- 2.7.4