Message ID | 20170908081033.3025-2-jglauber@cavium.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 E45FB6034B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Sep 2017 08:11:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D559C28550 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Sep 2017 08:11:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA3172855E; Fri, 8 Sep 2017 08:11:24 +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=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 5EF742856C for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Sep 2017 08:11:24 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=n+Fdb3SD158mJFztM6Kw7NkKla/NesxuH6fYHLKFiyM=; b=ubdcT0P473xuHR8O/icstLW3Th 9msqNR97ilJ/xlZP2H+O+ZK/2MlBdA/M2taFjZE1tYbcfrRXj+rJHq+Wltr6vSugynA3Leq+PwJXx sBIVBt7dJSw85t0HLY6/4WGjDktpWwB4bxx/4juftivKvz9NJmoiLNR2hQTgqJXX4TN7MCtsiMOz+ DlvOGhTx14WrcRuBkKPxtE+fXDvsHpufWFmUnTKtm5iUlQQFE5wZTXd277KAOpXnSQTvwXmKBq7Je 7AVo4H2hTwVLRitNhykx7VX7LH8eR9m25Vp0bvrPT4pw+X9ietjOBMiiPkBX0iMvI+Ag9uWG1EUXz vczfqRqA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dqENh-000334-Tx; Fri, 08 Sep 2017 08:11:17 +0000 Received: from mail-wr0-f193.google.com ([209.85.128.193]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dqENe-0002yZ-Bs for linux-arm-kernel@lists.infradead.org; Fri, 08 Sep 2017 08:11:16 +0000 Received: by mail-wr0-f193.google.com with SMTP id b9so895910wra.0 for <linux-arm-kernel@lists.infradead.org>; Fri, 08 Sep 2017 01:10:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LJlmsNjACefTQD5KOQop3axr1AWO5Y9U01TlXydabkU=; b=GxdwXSinqyeHIidr50aAk2+Q4XYyKxR/uZPB1gDnqbrVTFQYB2rhdRbiE3Hb6CoLd/ Whr4dtD8gUy0sMvqEP1+j8L7kEGOcJUZc1vUNBXOx46MlqMKo8XUQE550LV2xFJBt5gy W+2b84ycoA71ywXPPTaR2EoRI4jxcQKTDx4wORI/QbJFBLnqPy1p1g4gojaXBH8rO0lO bDjhGPzZ/pohKbfdgBgfgyo3EtkJyjP2UQw/jL377z/A7x8GdjN7NyI4vCx+4vB+nOyH Tm6V0ZO9ZWdroRjK04arMsulCHLhwlXI7gMVnzRYpGycV0X40FL7TneKulbfpS/pU9BG yeXg== X-Gm-Message-State: AHPjjUh5C29TnTdlYHb1nl4AcBbdo9WXTh/RNEh+G5gjih1S6fnytxQw kZxaueREt9ASHQ== X-Google-Smtp-Source: ADKCNb6GoTH1khXDfFBB/lBklpbC3toAUE49YaeffUzTh8m17epgjc6u3FyAHC1E3flI+m1fhMPeJQ== X-Received: by 10.223.172.66 with SMTP id v60mr1327313wrc.143.1504858253288; Fri, 08 Sep 2017 01:10:53 -0700 (PDT) Received: from hc.fritz.box (HSI-KBW-46-223-156-13.hsi.kabel-badenwuerttemberg.de. [46.223.156.13]) by smtp.gmail.com with ESMTPSA id r14sm1600805wra.97.2017.09.08.01.10.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Sep 2017 01:10:52 -0700 (PDT) From: Jan Glauber <jglauber@cavium.com> To: Bjorn Helgaas <bhelgaas@google.com> Subject: [PATCH v4 1/3] PCI: Allow PCI_DEV_FLAGS_NO_BUS_RESET to be used on bus device Date: Fri, 8 Sep 2017 10:10:31 +0200 Message-Id: <20170908081033.3025-2-jglauber@cavium.com> X-Mailer: git-send-email 2.9.0.rc0.21.g7777322 In-Reply-To: <20170908081033.3025-1-jglauber@cavium.com> References: <20170908081033.3025-1-jglauber@cavium.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170908_011114_576223_B8D83C2B X-CRM114-Status: GOOD ( 10.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: kvm@vger.kernel.org, david.daney@cavium.com, linux-pci@vger.kernel.org, Jan Glauber <jglauber@cavium.com>, Robert Richter <robert.richter@cavium.com>, linux-kernel@vger.kernel.org, Alex Williamson <alex.williamson@redhat.com>, Jon Masters <jcm@redhat.com>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index fdf65a6c13f6..b2a46ca7f133 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -4325,6 +4325,10 @@ static bool pci_bus_resetable(struct pci_bus *bus) { struct pci_dev *dev; + + if (bus->self && (bus->self->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET)) + return false; + list_for_each_entry(dev, &bus->devices, bus_list) { if (dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET || (dev->subordinate && !pci_bus_resetable(dev->subordinate)))