Message ID | 1502957663-5527-2-git-send-email-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 C54066038C for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 17 Aug 2017 08:16:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B54D528AC9 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 17 Aug 2017 08:16:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9D7228ACB; Thu, 17 Aug 2017 08:16:52 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, 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 2BE9328AC9 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 17 Aug 2017 08:16:52 +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=vLdvbyzfhWJAkt35Y2sqsm7z7sRhMVc+4FsNEO79X0U=; b=HRSFcwZv8ldW0CnRgqtkOZl1SC /MlnLin6dLPI2WsLVMsRyCJRbbVXioaU1s/kVsKPoLF65L1uwyGKFkDYqSW8zw+/CMxGldCjGXLx1 5gpB30wVlk2TgZsy1vUedxAuWSspDy9crNq8WXVD1dw7Wpabm3Me8VblMauVgnfSEE+pWUA5Vk4Vb psrCDNZ99DT1YOiGKSERNQMCKxgH+wbcDR/GwSun6YaTcJ2CBisBFAacDuNURYnogYm/JVwRl4LZd 4WSSP5rL4NnncPJs4rOLWmqZx/SY1Zj9FX066EaLKtViYsGo7mCfNak2W1zbTGOGin+iZgeMHu69P 6XkdRJuQ==; 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 1diFyx-0005C3-08; Thu, 17 Aug 2017 08:16:47 +0000 Received: from mail-wr0-f195.google.com ([209.85.128.195]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1diFxc-0002ml-BU for linux-arm-kernel@lists.infradead.org; Thu, 17 Aug 2017 08:15:42 +0000 Received: by mail-wr0-f195.google.com with SMTP id p8so983663wrf.2 for <linux-arm-kernel@lists.infradead.org>; Thu, 17 Aug 2017 01:15:04 -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=qaphwBHb+zU3ev3NVN7TOSSreMynoGbonAUKptoAR3s=; b=exnx8JXrjLoVbV5F3Qylm7pPS2ESpxNPIJm2N/8i81O9PIrTFVZhTdZpNHgj5oFLPv /dJ0SsOHw3LGsH189h1gvRKOHfQV14ViAQUk1kmJVnQv1UZLarvYsnO3LeSaK8LHxM68 8aFCQbw90X1CBkXoTOYlceVKHOq/FeGVzptjg3RFwLv/PxMKC5wkV7jR5cXeBKkWJO6n 26/og2BCQYP8EmH6DbY7ps5CA6zrpUFziny5ffQsg4qdkrnI6XclKlivdb5rZL4wQWTD bv82rn7acT3aWL2ndn56dzEyjwClC6Awy5IYgNCsjxr5+DrQFH5gZPuYVezt7re3uJKn da3Q== X-Gm-Message-State: AHYfb5gAx82QkI+c2kRaAkXqlnan5shX7KOWdEG+BxsqS/9+F7FhuZk5 emnfIWH0EnD+hg== X-Received: by 10.223.177.25 with SMTP id l25mr3262395wra.14.1502957702719; Thu, 17 Aug 2017 01:15:02 -0700 (PDT) Received: from wintermute.fritz.box (HSI-KBW-46-223-170-164.hsi.kabel-badenwuerttemberg.de. [46.223.170.164]) by smtp.gmail.com with ESMTPSA id x14sm8467633wmd.19.2017.08.17.01.15.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Aug 2017 01:15:02 -0700 (PDT) From: Jan Glauber <jglauber@cavium.com> To: Bjorn Helgaas <bhelgaas@google.com>, linux-pci@vger.kernel.org, Alex Williamson <alex.williamson@redhat.com> Subject: [PATCH v2 1/3] PCI: Allow PCI_DEV_FLAGS_NO_BUS_RESET to be used on bus device Date: Thu, 17 Aug 2017 10:14:21 +0200 Message-Id: <1502957663-5527-2-git-send-email-jglauber@cavium.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502957663-5527-1-git-send-email-jglauber@cavium.com> References: <1502957663-5527-1-git-send-email-jglauber@cavium.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170817_011524_713133_096FB54C X-CRM114-Status: GOOD ( 11.01 ) 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, Jon Masters <jcm@redhat.com>, linux-kernel@vger.kernel.org, Robert Richter <robert.richter@cavium.com>, Jan Glauber <jglauber@cavium.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 af0cc34..d9abbc9 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -4290,6 +4290,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)))