From patchwork Fri Sep 16 20:06:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 9336655 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D767601C2 for ; Fri, 16 Sep 2016 20:09:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F162E2A001 for ; Fri, 16 Sep 2016 20:09:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E65AE2A094; Fri, 16 Sep 2016 20:09:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9656A2A001 for ; Fri, 16 Sep 2016 20:09:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965265AbcIPUJF (ORCPT ); Fri, 16 Sep 2016 16:09:05 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46733 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965377AbcIPUGs (ORCPT ); Fri, 16 Sep 2016 16:06:48 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 20A4061256; Fri, 16 Sep 2016 20:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1474056407; bh=0Z7vmG4vUbTZj8GX1d5TrWywqPxQwLYdusQXx2W31dA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WQYsYKjU/uuaDikoQEwvwq1KtRT9kVWbqDZE86+POdMgnVcHbMdCjlMLTogkz2Kuy EGrBr5B+y7dxmaYAbg+2Sfxiaap1HzqNCRiyrjMmrkzqXd1Ucdy7SVk9IlE7wBQlLd xtEldtjXns9poWWPI41yXhXaifBx3qzPT0g4tA+4= Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7F9C761256; Fri, 16 Sep 2016 20:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1474056406; bh=0Z7vmG4vUbTZj8GX1d5TrWywqPxQwLYdusQXx2W31dA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kvvBzKPQXcEgjulQjJLpb9T3j3VmYgLEFFC5WZXZHJfe2pbgYuqH8/94R72/s3yy/ UEEh6v27rh9HEhMxKWJJCZRNcuP9itv2zD0WrFo216F7Bi4CSent72OSbVrLBgiQZV /LbjqC0bik461okNfAQeZNiZUQYlTko6U/3QqOsI= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 7F9C761256 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: linux-pci@vger.kernel.org, timur@codeaurora.org, cov@codeaurora.org, alex.williamson@redhat.com, vikrams@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sinan Kaya , linux-kernel@vger.kernel.org Subject: [PATCH V2 2/5] IB/hfi1: replace pci_reset_bridge_secondary_bus with pci_reset_bus Date: Fri, 16 Sep 2016 16:06:31 -0400 Message-Id: <1474056395-21843-3-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474056395-21843-1-git-send-email-okaya@codeaurora.org> References: <1474056395-21843-1-git-send-email-okaya@codeaurora.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Save and restore the settings on other devices impacted by the secondary bus reset downstream. Signed-off-by: Sinan Kaya --- drivers/infiniband/hw/hfi1/pcie.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/hfi1/pcie.c b/drivers/infiniband/hw/hfi1/pcie.c index 89c68da..f8f21fb 100644 --- a/drivers/infiniband/hw/hfi1/pcie.c +++ b/drivers/infiniband/hw/hfi1/pcie.c @@ -861,9 +861,7 @@ static int trigger_sbr(struct hfi1_devdata *dd) * delay after a reset is required. Per spec requirements, * the link is either working or not after that point. */ - pci_reset_bridge_secondary_bus(dev->bus->self); - - return 0; + return pci_reset_bus(dev->bus); } /*