From patchwork Wed Jun 20 04:12:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10475883 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 D6E9B604D3 for ; Wed, 20 Jun 2018 04:13:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4E8228630 for ; Wed, 20 Jun 2018 04:13:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8D092865F; Wed, 20 Jun 2018 04:13:41 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 61F8128630 for ; Wed, 20 Jun 2018 04:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Jz+WLh3w/skOT0r3O5S7oUzUg/vGMatFFXSO1YzBW2E=; b=WMc/kSXzPuMndC iAFwMAwbTbQns0069cIf6y2BFOjX45fTR4LkXTNg9PQZnHe4IHr9BVoOvx15wxiCOlr3TPnWJoXFk l/9vqNwBmTEKNxyfEAx7bU/ME0wuXYqyPzsjkRN7FXF8Mw07S6bQA3AiDpei6zLVqYkUuBuhh+OXL 30z5mtr6Ll3AqwCOZ7XYQpw8nCedWanr7ZmEPZvm22VGiRKSj8NNLtrPRDGxj3sCW70Fukr9/YNVw gblLWVXYiFmawTi4x7g7ZzGVzJS3vQvsbZdJxbq16XainVnDHXHoNiCGJNSjF/H4sbQHQEfC3PxOo qub9Xfs75mYi+Of+htfQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVUUx-000195-BN; Wed, 20 Jun 2018 04:13:35 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVUUu-00017X-C5 for linux-arm-kernel@lists.infradead.org; Wed, 20 Jun 2018 04:13:33 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A6C8E60B22; Wed, 20 Jun 2018 04:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529468001; bh=C94u/v8MusoLt7ZfsKFkoOg3CEkDT+oeWTqMz2XbsQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aFVkgF80HlTA8it1oZixKCmQ2kna4brESY4Kg/5brClMBN8m3GaStmPXKgRoTixvz fo7GnXGzzZkPRHm1QPx2gXQcf9Dzh65ZZJiFfDDX83RVjObvDk6LmstpYnShce59of FC7WWO9r/dU58fSSIIg4Par9wYr7CcCYZ3d8xPEI= 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 4D1EF6085F; Wed, 20 Jun 2018 04:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529468001; bh=C94u/v8MusoLt7ZfsKFkoOg3CEkDT+oeWTqMz2XbsQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aFVkgF80HlTA8it1oZixKCmQ2kna4brESY4Kg/5brClMBN8m3GaStmPXKgRoTixvz fo7GnXGzzZkPRHm1QPx2gXQcf9Dzh65ZZJiFfDDX83RVjObvDk6LmstpYnShce59of FC7WWO9r/dU58fSSIIg4Par9wYr7CcCYZ3d8xPEI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4D1EF6085F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: linux-pci@vger.kernel.org, timur@codeaurora.org Subject: [PATCH V2 2/5] IB/hfi1: use pci_reset_bus() for initiating pci secondary bus reset Date: Wed, 20 Jun 2018 00:12:55 -0400 Message-Id: <1529467995-28780-2-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529467995-28780-1-git-send-email-okaya@codeaurora.org> References: <1529467995-28780-1-git-send-email-okaya@codeaurora.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180619_211332_459257_1C151FCB X-CRM114-Status: GOOD ( 11.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mike Marciniszyn , "open list:HFI1 DRIVER" , linux-arm-msm@vger.kernel.org, Dennis Dalessandro , open list , Sinan Kaya , Jason Gunthorpe , Doug Ledford , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Getting ready to hide pci_reset_bridge_secondary_bus() from the drivers. pci_reset_bridge_secondary_bus() should only be used internally by the PCI code itself. Other drivers should rely on higher level pci_reset_xxx() API. 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 4d4371b..a6d695a 100644 --- a/drivers/infiniband/hw/hfi1/pcie.c +++ b/drivers/infiniband/hw/hfi1/pcie.c @@ -905,9 +905,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); } /*