Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp858096pxu; Thu, 15 Oct 2020 19:43:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8LqI8O/gDp4lFtDa2tSFyDPphLPPpTQd5r+rlDY45+YY9V/Ps/PXFzJ6eAZZgArfi2ZWp X-Received: by 2002:a17:906:8401:: with SMTP id n1mr1401868ejx.215.1602816190279; Thu, 15 Oct 2020 19:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602816190; cv=none; d=google.com; s=arc-20160816; b=KimdZgPHUYhdmWqztJPOHvRbMChKSLuVeI92jzSTZT+c9Z5yOF+HG0BwacUy5RBCav dPvxYKG2B/kzAK+JaIeZFDXNijAn5xgWbJ2+OQpPaUeWV+dxa7ALGN7iJAmz8uyNRhfX Kj2F///f1Chg26yZIQSwEGGz1YT4YGSm7R+BgB5IKcuV8WKUC5kQa/0zbLNQOEOIS2+v phAZ7sBTsnhwI2XeupRf1MxP/EuM6sA8yVFQ/G+Yp2Y4sGiASOSWmu4uCltbK1q4s0L4 WqkoOsTgUX+IQPopal8KnwjIrZYXN+XWBlPRFePgrGaMy8dvYEbIS9WiET6Ifhi3MAdl 4gPg== 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=rYsoGqpbGrYNUiZzaVhW/OUq7d3pxR23cqJ5TDYlAfs=; b=PJrvwzGXfHPKkUPNZsRzU/bUN0MDP2UJmtXAHp1QKpqgyd7jaHU6sng6HASI6pV+fC oNVF5Na0g5AI3tMXv2f4EUiHjJws4/xxiY48CyfVe8XCeDV8Ob+u57bHm0OwLR/zvktC UbfoeisPXccI1Hru/GGB+hKx1eyqAVbCfpuIraFRwcYU4fudZpCQSp/bHVUYOWIxPGwX +ThldOkaMapaLKifCqbuiryDOX2SyNqBuFSV46xUw+3jqhYYZdE5YcVL9mx0v+pVRSUF GHbEFnDALsb/LXyZi6U8kHuJmEhxLNKSNfNo2adzSNTJ0i8rK6k3dPweIt9yo0LQfk9y PWJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oregontracks.org header.s=fm1 header.b=Ee48zmZ1; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=TT304In4; 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 d2si697204ejm.716.2020.10.15.19.42.46; Thu, 15 Oct 2020 19:43:10 -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=Ee48zmZ1; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=TT304In4; 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 S2389681AbgJPAM1 (ORCPT + 99 others); Thu, 15 Oct 2020 20:12:27 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:38887 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733125AbgJPAMY (ORCPT ); Thu, 15 Oct 2020 20:12:24 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 88738B81; Thu, 15 Oct 2020 20:12:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 15 Oct 2020 20:12:24 -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=rYsoGqpbGrYNUiZzaVhW/OUq7d3pxR23cqJ5TDYlAfs=; b=Ee48z mZ1Qtmpzg7AQbi+VPMEPPButq/903FgNQN/sh/9BIgXWqt8pBd3SBbPvQBrOGhhG 29DYIq4TTtNLq8iJW6NeS4T88uF7gBfx5WNaUSGNuLWuUjd52uiMcAETXRrT+8Tw whqjnx/u0+UtEzmHFPtKcVegnYtA0JEGlaA//RKH5yMJvLf6qvW0qV54+EJwEDfA 7QzX7l/Z4FAQD7Lz44QKJM5wUZii5qtjweF1cBfyPqwnYH8GEd4mvUpgTOYyLle3 uOGlKPTTAHNijI3or7lyxJXI8H5NBohk6frjbcS692Td4vaxi2R92kuPVmOnQaVp 4HLLPbBEKAvLO6G+w== 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=rYsoGqpbGrYNUiZzaVhW/OUq7d3pxR23cqJ5TDYlAfs=; b=TT304In4 Heg3chvzst8+0GFH+3vLqw5nSVXSfIIcwIzWVSCWyYnc8ELKGyBbJSUWaLPOUg4q w8+oV/Gm0iQx2RVj9HanVnJhh7so9Ri/Ye12fWI2LWIE2vPplnbUyWLMUb9L5HJl WOQvLpskJD6vCl6mGlNXjXPZkrGBeIiUFYV3YfXzQQvyNelRVVmODacNOxVOCb+9 w+Yu+RP2tSIGghtelu4Kp0IEslKng5dzXIpM3NTUkZnfxIbLVoj9KSZFEuB4NsAD nrfOAEhpLI3MWtV0rx2liC7GV4azACkCOF3OythJq/DU8Ca1LbKt6Q7cFZGKWqtt ozawl+Dlqxz6Ng== 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 0A97A3064682; Thu, 15 Oct 2020 20:12:20 -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 05/15] PCI/ERR: Simplify by using pci_upstream_bridge() Date: Thu, 15 Oct 2020 17:11:03 -0700 Message-Id: <20201016001113.2301761-6-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 Use pci_upstream_bridge() in place of dev->bus->self. No functional change intended. [bhelgaas: split to separate patch] Link: https://lore.kernel.org/r/20201002184735.1229220-6-seanvk.dev@oregontracks.org Signed-off-by: Sean V Kelley Signed-off-by: Bjorn Helgaas Acked-by: Jonathan Cameron --- drivers/pci/pcie/err.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c index db149c6ce4fb..05f61da5ed9d 100644 --- a/drivers/pci/pcie/err.c +++ b/drivers/pci/pcie/err.c @@ -159,7 +159,7 @@ pci_ers_result_t pcie_do_recovery(struct pci_dev *dev, */ if (!(pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT || pci_pcie_type(dev) == PCI_EXP_TYPE_DOWNSTREAM)) - dev = dev->bus->self; + dev = pci_upstream_bridge(dev); bus = dev->subordinate; pci_dbg(dev, "broadcast error_detected message\n"); -- 2.28.0