Received: by 10.192.165.148 with SMTP id m20csp3553475imm; Mon, 23 Apr 2018 08:26:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/lp3FiqrM/FPxuOQySBFhxaQSRER/s8To+yHvzGT2DxckAyP1yB6k6WVPClH5l+rjLGVLT X-Received: by 2002:a17:902:28e8:: with SMTP id f95-v6mr18339957plb.250.1524497173706; Mon, 23 Apr 2018 08:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524497173; cv=none; d=google.com; s=arc-20160816; b=xWSwzrAEXU9gZtdo9wC58Bgv/VI56qc5u8eUyaJnjcmcFjCuyzXq8FFn/mUf09ePuw Fb8bjIQJkVacD9uoBFhASlpexda1LU+mkN/IlhgdbazfszJ9a+m5tMC7ydz0kNJKgDdo BmbGouqp5BWAjcX7h6Lpo2Nxv+JrcvnCT8mk6DbS4Ve50Xqlzdkabf+afiIxnh6BU+Is XtoWT3AvsV70HTQe0aFGETP9jrOk+yOpZyZty4G2udGonu+sqONoM+PUawp5wp3T/SNN lFA2con5Ib6HiE7m6mqmm5M7L8GSKA3spaZd2esY5Jd277DdiFhvWk7fIyzTvcaM1qPk qdEA== 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=0oKoVXHf3uE8TCwcjX2aNVSH4359RDkul73jz029QHM=; b=l4wtj0SPAGQCHQYy8fZhn4MtCXqhH2tgjhr64SFPddE5jaDZkwvHjX70e1Mk7L27me TCh2C6VTLOz6KoHZ65pTKSR9VPIeJtpbDfVtYosy5cegESRxoMUZ4FmfzrAsmPdXrvUU oZSTr0VmsG14LVRXSeveV0FSj3+41T/hB830edoMIn5WYv7C7+CksQgIecbQGm+jnoT0 oSbgIkINjHsFkB227l2sEVBmk28xyix6MyyIg2T8s8VJ8G6RTEg/wjsmaStXfGG0yskN VWaruHaat4GKsHHMT707AoTjdyhSj2c+pcueVHBzAAzPxSXHcCtofdpXlXRS92SXFSvV 75sQ== 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 69-v6si11287675plc.436.2018.04.23.08.25.59; Mon, 23 Apr 2018 08:26:13 -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 S1755807AbeDWPXS (ORCPT + 99 others); Mon, 23 Apr 2018 11:23:18 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:8437 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755047AbeDWPXQ (ORCPT ); Mon, 23 Apr 2018 11:23:16 -0400 X-IronPort-AV: E=Sophos;i="5.49,318,1520924400"; d="scan'208";a="432990772" Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by wolverine02.qualcomm.com with ESMTP; 23 Apr 2018 08:23:15 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8871"; a="173875855" Received: from westreach.qualcomm.com ([10.228.196.125]) by ironmsg-SD-alpha.qualcomm.com with ESMTP; 23 Apr 2018 08:23:14 -0700 Received: by westreach.qualcomm.com (Postfix, from userid 467151) id 46EB3E39; Mon, 23 Apr 2018 11:23:14 -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 v14 1/9] PCI/AER: Rename error recovery to generic PCI naming Date: Mon, 23 Apr 2018 11:23:05 -0400 Message-Id: <1524496993-29799-2-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524496993-29799-1-git-send-email-poza@codeaurora.org> References: <1524496993-29799-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 fcd8191..abc514e 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -342,6 +342,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); + #ifdef CONFIG_PCIEASPM void pcie_aspm_init_link_state(struct pci_dev *pdev); void pcie_aspm_exit_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 a4bfea5..aeb83a0 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -478,7 +478,7 @@ static pci_ers_result_t reset_link(struct pci_dev *dev) } /** - * 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 * @@ -486,7 +486,7 @@ static pci_ers_result_t reset_link(struct pci_dev *dev) * 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) +static void pcie_do_recovery(struct pci_dev *dev, int severity) { pci_ers_result_t status, result = PCI_ERS_RESULT_RECOVERED; enum pci_channel_state state; @@ -566,7 +566,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 @@ -631,7 +631,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