Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp841612pxu; Thu, 15 Oct 2020 19:03:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7Dk45bixV3EikIr10n74RcxFSKZMV9KzVS7GWNqkR2Hih/+Xw7s1rNv0l5iRt0csIzrx7 X-Received: by 2002:a17:906:b0d7:: with SMTP id bk23mr1368236ejb.103.1602813801515; Thu, 15 Oct 2020 19:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602813801; cv=none; d=google.com; s=arc-20160816; b=C0tT9i5kunU2OBF+Wmux9K/0o3TA5NGF73wy5gbCNXdRZqJbsB/gnTJ2V/TFrslYOO IvEboPoMEKDRUs+FP0rf78hk4wWNVLxnI1ki0BxzLR9RItOyXF0qKU7wOHJ9QAc2zeBP vwyg1+FxYt3ZrqBzdX7C7JATQ09nAl7AmoDvn7A0UgmRqvEFW9gywEZuqu9Lzl8/PrUP iDeaLU5Km8uoLo7kKQrsIDsERtbZ8c+c7IpaZvBaejpJuHKpjGMLCEJtF6o9qdCmMK9a oVlFqwzf09V4vlHWPGv1pUcBfsxFkzPyDxJFmemJu3IpbmntSkrsQg9yRIfb+6NGYkOM awtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=cAxnkEsWgBoF+PYkFLDf0x/HkFDrF6YQd5lkuvCVn6s=; b=KjT2YGYVgiDkmmU2rNHimq9c27/4/bW2g6R6qpEpPG/KMqSXmmLWfqXx2cRdJr8D8b xy6Haif5Ed5BX2LZ+1Jfqhx6jkEr89cSknFBO9yd5j0aC8YpGTgGD+hiZcK6naVZIscc PL0z5aL5OvfAPgh2aBsSR0IOVEpCsxJaSkqfu+BcuMl1glzGdksxaM5PfgmmicXs4hKy e4g+NXLRoUZPXcbUEYS5Ukj+iszoXVHP6P6v1ypbsgxmiTWcqPC+ybU/aOGQ3tG3ueyG u6o82BsykGYIzL/VTEjFr1v/OYR9XpDOYuNJfaOkxioyzQ+u9XOSIqtrUYR79Lox8MDw IJCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oregontracks.org header.s=fm1 header.b=j3ebV1Bi; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=EK7eC0ks; 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 c26si646375eja.409.2020.10.15.19.02.59; Thu, 15 Oct 2020 19:03:21 -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; dkim=pass header.i=@oregontracks.org header.s=fm1 header.b=j3ebV1Bi; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=EK7eC0ks; 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 S2389737AbgJPAM2 (ORCPT + 99 others); Thu, 15 Oct 2020 20:12:28 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:45165 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733122AbgJPAMW (ORCPT ); Thu, 15 Oct 2020 20:12:22 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 36462B5D; Thu, 15 Oct 2020 20:12:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 15 Oct 2020 20:12:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= oregontracks.org; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=cAxnkEsWgBoF+PYkFLDf0x/HkFDrF6YQd5lkuvCVn6s=; b=j3ebV 1BiG5mIVyB+e16KHkodMxjmj7RASvsLaioyMZHMihyY1mHP9ku0q00i9mY2633vC Mq35fKLOoGKZ4Bxpom1kS+AJw9fZeWKbWHd49BvzIaHhxDeyqD0QWzIWcyYyf/P3 RFXKJAQdOnOiaakC4AsA574KVfbElvbxPhJ9mqDnI4Oneljp83mVmavDtirYTES5 d2HLxSngwWdi0bKdT0YBXm78g7XP+Dq2oLQtcb1tv6kZ2HgTqrC47BqT83lrQAMR Y1OG/0A8SjrkCA2/+nmO/Sw0B6Ap2Pgi2S5XNSgdZ2cjUTBWbyCNr2bUpuMgMEm3 Klurh6BD+Prh9XawA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=cAxnkEsWgBoF+PYkFLDf0x/HkFDrF6YQd5lkuvCVn6s=; b=EK7eC0ks nwcOMt9Q4xOQp0aY3d3oYVULoWLifO8HL70sser5SNUp5pMZGVXk5myQKMGkWMLT UnsBcKjAPzDxk3fzKIhqiZWLNSdUi3DPpqgyMIhl6lGtzBTIl0k++S0gKQDi5Akm RupwZhj0nH+7ZWADtE45WfE3/R+upO6jCg8zvzEv9C4IHUPD3kv4xkQwveOkFUl7 a2/nxKkN4cvxH0rpgpN7fZik3OU/hy1bBqMkKtySz1wIHWrZ5oIi9gQVI/gv6ARM ARnHpbK2meFVBtElvRLct8Tm9273rVeCOJAg5i2HLyLkfbzNJk9U3YLLmT99n/74 1TRVipALo3LuWw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrieeggdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefuvggrnhcuggcumfgvlhhlvgihuceoshgvrghnvhhkrdguvghv sehorhgvghhonhhtrhgrtghkshdrohhrgheqnecuggftrfgrthhtvghrnhepkefggeektd dttdeuffffjeeihfetfffghfdugefhvdeuheeuudelheegleevheefnecuffhomhgrihhn pehkvghrnhgvlhdrohhrghenucfkphepvdegrddvtddrudegkedrgeelnecuvehluhhsth gvrhfuihiivgepfeenucfrrghrrghmpehmrghilhhfrhhomhepshgvrghnvhhkrdguvghv sehorhgvghhonhhtrhgrtghkshdrohhrgh X-ME-Proxy: Received: from arch-ashland-svkelley.hsd1.or.comcast.net (c-24-20-148-49.hsd1.or.comcast.net [24.20.148.49]) by mail.messagingengine.com (Postfix) with ESMTPA id 80708306467E; Thu, 15 Oct 2020 20:12:19 -0400 (EDT) From: Sean V Kelley To: bhelgaas@google.com, Jonathan.Cameron@huawei.com, rafael.j.wysocki@intel.com, ashok.raj@intel.com, tony.luck@intel.com, sathyanarayanan.kuppuswamy@intel.com, qiuxu.zhuo@intel.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Sean V Kelley Subject: [PATCH v9 04/15] PCI/ERR: Rename reset_link() to reset_subordinates() Date: Thu, 15 Oct 2020 17:11:02 -0700 Message-Id: <20201016001113.2301761-5-seanvk.dev@oregontracks.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201016001113.2301761-1-seanvk.dev@oregontracks.org> References: <20201016001113.2301761-1-seanvk.dev@oregontracks.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean V Kelley reset_link() appears to be misnamed. The point is to reset any devices below a given bridge, so rename it to reset_subordinates() to make it clear that we are passing a bridge with the intent to reset the devices below it. [bhelgaas: fix reset_subordinate_device() typo, shorten name] Suggested-by: Bjorn Helgaas Link: https://lore.kernel.org/r/20201002184735.1229220-5-seanvk.dev@oregontracks.org Signed-off-by: Sean V Kelley Signed-off-by: Bjorn Helgaas Acked-by: Jonathan Cameron --- drivers/pci/pci.h | 4 ++-- drivers/pci/pcie/err.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index af98b7d2134b..bc2340971a50 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -573,8 +573,8 @@ static inline int pci_dev_specific_disable_acs_redir(struct pci_dev *dev) /* PCI error reporting and recovery */ pci_ers_result_t pcie_do_recovery(struct pci_dev *dev, - pci_channel_state_t state, - pci_ers_result_t (*reset_link)(struct pci_dev *pdev)); + pci_channel_state_t state, + pci_ers_result_t (*reset_subordinates)(struct pci_dev *pdev)); bool pcie_wait_for_link(struct pci_dev *pdev, bool active); #ifdef CONFIG_PCIEASPM diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c index c543f419d8f9..db149c6ce4fb 100644 --- a/drivers/pci/pcie/err.c +++ b/drivers/pci/pcie/err.c @@ -147,8 +147,8 @@ static int report_resume(struct pci_dev *dev, void *data) } pci_ers_result_t pcie_do_recovery(struct pci_dev *dev, - pci_channel_state_t state, - pci_ers_result_t (*reset_link)(struct pci_dev *pdev)) + pci_channel_state_t state, + pci_ers_result_t (*reset_subordinates)(struct pci_dev *pdev)) { pci_ers_result_t status = PCI_ERS_RESULT_CAN_RECOVER; struct pci_bus *bus; @@ -165,9 +165,9 @@ pci_ers_result_t pcie_do_recovery(struct pci_dev *dev, pci_dbg(dev, "broadcast error_detected message\n"); if (state == pci_channel_io_frozen) { pci_walk_bus(bus, report_frozen_detected, &status); - status = reset_link(dev); + status = reset_subordinates(dev); if (status != PCI_ERS_RESULT_RECOVERED) { - pci_warn(dev, "link reset failed\n"); + pci_warn(dev, "subordinate device reset failed\n"); goto failed; } } else { -- 2.28.0