Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1886592rwb; Fri, 19 Aug 2022 11:04:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR64dD39A0JkaULElQ4MBIYjwrJGvjaGTGcSUvFB4OnzCJOFBsZ921lGleLcsFQfBSo3Plkb X-Received: by 2002:a05:6402:35d6:b0:43d:c3b0:1206 with SMTP id z22-20020a05640235d600b0043dc3b01206mr6979894edc.415.1660932266913; Fri, 19 Aug 2022 11:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660932266; cv=none; d=google.com; s=arc-20160816; b=TkE2SnESZZHTOdsfmaT48QxiR3q/BO36EJycEVSTYdHLJT1b/AFdomuWKFvLyBKsjf mkjcZHTWvu77a+4teKs34oJWizhWPKmzNltiI9Cwu2bjmKjkG8yLt82YmGkAX/E8D++F gqC6GLyTI5Zztop4dcmbfqOJi5vexijDXKdcRb9/ANJ4YnGDCndpN5vQfE1RmvxdQFtV pSMjNBxJ9tJCiGApELLDc2ydrewK74K2n2uIZN38WvxKeCLN2kmKX8j3fYKsSb3ny7d8 erNl6iKOfRmOjumPQ8KzCVoWRzHDDl/JxTJchsn/tZAZtOgHW3Mp98DPTF9wOQLt+JEv MRow== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=C22szkBxPm2LRynB/z+MQZ186go/AegKvDP4PUCzrf4=; b=dzMJoHyGIdkfjGawaJlW4TvxRmzlWe827QHfDGJPF2KrAr+22qFunyFqOdLjMnsnud Tn9LSx6khW7+D+IEbytKzjNKzuI4+susPQij30/uawSPKwcWbhuIxPr5YFyVxSk9xU3F 3nPN2YYxdr1SKpuEpI6VTdzkESa4ajoEuYopBGTn+D0qHATp/TXMAFypnhDQpCvsWRwy u9lDQE5Y8DVjU5Ly8tSjAtXoaUXd/yCCnVmz1PK+j7QCld7Lvo7f1vGTv//oEFmWvQhO zycBMPZ4e1YLyHIrW7rtSXTVqFzoar460LhOIAsK+JzGbyTfjf3aD/DrY1gHVn2rXkWG S3VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=noGYNRGI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp16-20020a1709071b1000b00730bcba7f70si3559892ejc.635.2022.08.19.11.03.59; Fri, 19 Aug 2022 11:04:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=noGYNRGI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354117AbiHSQsF (ORCPT + 99 others); Fri, 19 Aug 2022 12:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354001AbiHSQpj (ORCPT ); Fri, 19 Aug 2022 12:45:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9A2E12A1DF; Fri, 19 Aug 2022 09:11:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C2A29B8280D; Fri, 19 Aug 2022 16:11:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02546C433C1; Fri, 19 Aug 2022 16:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660925488; bh=Tb0e6xMNt//1x5UfU5ZNfc2D7Ql4KchN4AOJtashIJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=noGYNRGIeMold4fZBCEj9gqWhIe74YZGUppzRMc+q4KeDeOtFQQ3TIkdA5D6yhbGg 3HKS+t79dtI67Xr2UabAx+iv5u4KPhOnw44f7Nad+bl22HZ2GFdwH23wRtXH/MDUaX ons/LOygaL0XsLn9Tcaqc2PpZbEKzGNgpV36p35c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean V Kelley , Bjorn Helgaas , Kuppuswamy Sathyanarayanan , Jonathan Cameron , Sasha Levin Subject: [PATCH 5.10 476/545] PCI/ERR: Simplify by using pci_upstream_bridge() Date: Fri, 19 Aug 2022 17:44:06 +0200 Message-Id: <20220819153850.717142295@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean V Kelley [ Upstream commit 5d69dcc9f839bd2d5cac7a098712f52149e1673f ] Use pci_upstream_bridge() in place of dev->bus->self. No functional change intended. Link: https://lore.kernel.org/r/20201121001036.8560-6-sean.v.kelley@intel.com Tested-by: Jonathan Cameron # non-native/no RCEC Signed-off-by: Sean V Kelley Signed-off-by: Bjorn Helgaas Reviewed-by: Kuppuswamy Sathyanarayanan Acked-by: Jonathan Cameron Signed-off-by: Sasha Levin --- 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.35.1