Received: by 10.192.165.148 with SMTP id m20csp1423623imm; Wed, 2 May 2018 22:04:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqp4kH4LH2jXhrMw47fvp932620nTYRiMnp90udF0scVtjr1m8be1tNBFh21AmMJxGfIASo X-Received: by 2002:a17:902:7082:: with SMTP id z2-v6mr10724195plk.373.1525323883271; Wed, 02 May 2018 22:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525323883; cv=none; d=google.com; s=arc-20160816; b=IcHEO3INFw7CmoBZfq9DLJTM/wBOlRIqgS2S2PinAmwchoYab6OauS9RnmeeiA0f9X Cx0+qXTvhkK6OqnSo4fAtfXc47maYMTKJt/ZSfx/T/AuTTglcvtya62eqPBIoGjP9jDj X8Z5HBk/yDhasUatn1GHpgC/3QBz1cOdcqkf4PbtKb7jh00ESEBIRvqZ9OxVgkpZ4vJk qgLjYgAD1/Lr0euAKdnagunt5t5/A744u/Eh3ygA+OXRDr7tgGQEOnQVe+obJtNBFhxR Pp+OTZZDJwTdhMYx0vvCRTpSNldhCCnQNuvlVW+vxAMYr/KIrM3NMW1H7+yWlKwOVqej 9Rzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=dfM8WENALZ/j4fnGw+U7fw68kx1Hxgo2f7PBlgdlzkQ=; b=yB5B4ZR0sK69dr62ERJtz60WhIgMhLnEXBBZdnZCcTMsCEfcCvctq2MWy4rDU9ZHZL dcbe1fJ6kIG9OeX+Wt5HcDNdYhFyu1uowxOJyyqQJy5F0+mJ62uS5jK6enUcgYVflamt gEa3f3uWkjAHtG3ZxGT+yRhUcY9FTQtR30qnC1UCT3vtB0ibXXilco9lvhZHtVxFyUje LTq1d1XkvmwN+DSA7kPXGdwHuzlBzfLB8eG0f5nWMa5R/iR9XJV6GlVIJBCe5u1TB7ug 0+RQzbufLJuikdtvMluYl5+WhCU8Gyx1pt5HQisjReWV1hjCwjhGCDLf6kdYQxSUKXIc Fwkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4-v6si10621149pgs.508.2018.05.02.22.04.27; Wed, 02 May 2018 22:04:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752044AbeECFEJ (ORCPT + 99 others); Thu, 3 May 2018 01:04:09 -0400 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:11756 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775AbeECFEE (ORCPT ); Thu, 3 May 2018 01:04:04 -0400 X-IronPort-AV: E=Sophos;i="5.49,356,1520924400"; d="scan'208";a="126361291" Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by sabertooth01.qualcomm.com with ESMTP; 02 May 2018 22:04:03 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8881"; a="76178774" Received: from westreach.qualcomm.com ([10.228.196.125]) by ironmsg04-sd.qualcomm.com with ESMTP; 02 May 2018 22:04:02 -0700 Received: by westreach.qualcomm.com (Postfix, from userid 467151) id D25EC1F28; Thu, 3 May 2018 01:04:01 -0400 (EDT) From: Oza Pawandeep To: Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi Cc: Oza Pawandeep Subject: [PATCH v15 4/9] PCI/AER: Rename error recovery to generic PCI naming Date: Thu, 3 May 2018 01:03:53 -0400 Message-Id: <1525323838-1735-5-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525323838-1735-1-git-send-email-poza@codeaurora.org> References: <1525323838-1735-1-git-send-email-poza@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch renames error recovery to generic name with pcie prefix Signed-off-by: Oza Pawandeep Reviewed-by: Keith Busch diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index cec9d8c..22a9589 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -353,6 +353,9 @@ static inline resource_size_t pci_resource_alignment(struct pci_dev *dev, void pci_enable_acs(struct pci_dev *dev); +/* PCI error reporting and recovery */ +void pcie_do_recovery(struct pci_dev *dev, int severity); + bool pcie_wait_for_link(struct pci_dev *pdev, bool active); #ifdef CONFIG_PCIEASPM void pcie_aspm_init_link_state(struct pci_dev *pdev); diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 655d4e8..be4ee3b 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -475,7 +475,7 @@ static pci_ers_result_t reset_link(struct pci_dev *dev) return status; } -static pci_ers_result_t do_fatal_recovery(struct pci_dev *dev, int severity) +static pci_ers_result_t pcie_do_fatal_recovery(struct pci_dev *dev, int severity) { struct pci_dev *udev; struct pci_bus *parent; @@ -514,7 +514,7 @@ static pci_ers_result_t do_fatal_recovery(struct pci_dev *dev, int severity) } /** - * do_recovery - handle nonfatal/fatal error recovery process + * pcie_do_recovery - handle nonfatal/fatal error recovery process * @dev: pointer to a pci_dev data structure of agent detecting an error * @severity: error severity type * @@ -522,13 +522,13 @@ static pci_ers_result_t do_fatal_recovery(struct pci_dev *dev, int severity) * error detected message to all downstream drivers within a hierarchy in * question and return the returned code. */ -static void do_recovery(struct pci_dev *dev, int severity) +void pcie_do_recovery(struct pci_dev *dev, int severity) { pci_ers_result_t status; enum pci_channel_state state; if (severity == AER_FATAL) { - status = do_fatal_recovery(dev, severity); + status = pcie_do_fatal_recovery(dev, severity); if (status != PCI_ERS_RESULT_RECOVERED) goto failed; return; @@ -600,7 +600,7 @@ static void handle_error_source(struct pcie_device *aerdev, pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, info->status); } else - do_recovery(dev, info->severity); + pcie_do_recovery(dev, info->severity); } #ifdef CONFIG_ACPI_APEI_PCIEAER @@ -665,7 +665,7 @@ static void aer_recover_work_func(struct work_struct *work) } cper_print_aer(pdev, entry.severity, entry.regs); if (entry.severity != AER_CORRECTABLE) - do_recovery(pdev, entry.severity); + pcie_do_recovery(pdev, entry.severity); pci_dev_put(pdev); } } -- 2.7.4