Message ID | be7c4eca969b0c1a17a4426c9ef2fbdb3b731d2f.1719929191.git.mst@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cG/MNScL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WD4dR5JGQz1xpc for <incoming@patchwork.ozlabs.org>; Wed, 3 Jul 2024 00:13:31 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-ppc-bounces@nongnu.org>) id 1sOeES-0007g1-Tl; Tue, 02 Jul 2024 10:11:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mst@redhat.com>) id 1sOeEE-000616-12 for qemu-ppc@nongnu.org; Tue, 02 Jul 2024 10:11:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mst@redhat.com>) id 1sOeE7-0000U4-Vm for qemu-ppc@nongnu.org; Tue, 02 Jul 2024 10:11:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1719929482; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=actUboiQ+IrTgCsdz18KhXUIoDAvYkrEhXUsAIxh/Nc=; b=cG/MNScLAg8LZBIZPCaMTBtAk8szgpkuIKu2QKpY7XndzJhcIxkLPUbsQoKbBNhUg+z3Oa wCEXvM6aJDW4YiB50rBlion4khA0KBUAC7R9+E0WN/irxlz6XH3a8ognKsLZ23V/c28Mx5 +wbYWEElb3OEok0MDnCRRgwealM8/W4= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-322-n5DAZHCXPs-wwfQtYlm45A-1; Tue, 02 Jul 2024 10:11:20 -0400 X-MC-Unique: n5DAZHCXPs-wwfQtYlm45A-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4256c2a2e8dso29679755e9.3 for <qemu-ppc@nongnu.org>; Tue, 02 Jul 2024 07:11:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719929479; x=1720534279; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=actUboiQ+IrTgCsdz18KhXUIoDAvYkrEhXUsAIxh/Nc=; b=Ha6sASCSbN/PKz9/1FF4bMY0vM5MW5eyrpWqhUaeqJu9LOQ3OOKfBeaoeOVeQtN79Q 082mNXeW6kJUXMRjomjCqdWJc07T8554Bo+oBATvbbx1wA29Hl8ACXdFPLR8QJnq3m3/ iiz44nGk8K0RjeU4GrPTGdgjOuLr4wFc8EIc3mEJX9cPIO80/Js1stzuRC/W7E+OI5Ox LAq0AAp57jRc6DoQx+e7tFtD3HzntajBvpL08rzwypR57CKgjl9WxXD6iRDmLSmVQlub Zte8j9CGQDbjxDuzTxiO3XomhTSC1shbWczliTf9xAgNzd2O2Thh/LosUOQgUPR973mk CoDA== X-Forwarded-Encrypted: i=1; AJvYcCWJSTmvwSptYp4zCGm0Di80iW1kiAaNC3pjARWO/zEwkrLTY+AassSdrLJcYKOW1L/z3DXN0BTjU20vHQPdhsQUixNk X-Gm-Message-State: AOJu0YwbeJlVqSoJaoSD53dprPReUxuw37eLl7uPoCq5hkRerk4L//kQ rQiNYCHmtL4goagO+kLnhiWw3mMxNuhgv2C/zLjHDGMmlIJvKuzwBNLLUkl7GTgI0pP+yNZeHJS 4MdHfkyEj4Nzd+V/x/xVU9t1YXeUrF5ZbynmVUsyA4pUmH+aFWw== X-Received: by 2002:a05:6000:2cc:b0:366:eb45:6d55 with SMTP id ffacd0b85a97d-367757215a5mr7036341f8f.49.1719929479361; Tue, 02 Jul 2024 07:11:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuoZUZAxFLi6xOWmUDcw8ZAvIjY+5z3b4et2gwHpUkVjDAM9ED8sWHRmDpZMBQ2aClDMBVjA== X-Received: by 2002:a05:6000:2cc:b0:366:eb45:6d55 with SMTP id ffacd0b85a97d-367757215a5mr7036294f8f.49.1719929478487; Tue, 02 Jul 2024 07:11:18 -0700 (PDT) Received: from redhat.com ([2a02:14f:1f5:eadd:8c31:db01:9d01:7604]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3675a0d9b12sm13315259f8f.44.2024.07.02.07.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 07:11:17 -0700 (PDT) Date: Tue, 2 Jul 2024 10:11:15 -0400 From: "Michael S. Tsirkin" <mst@redhat.com> To: qemu-devel@nongnu.org Cc: Peter Maydell <peter.maydell@linaro.org>, Akihiko Odaki <akihiko.odaki@daynix.com>, Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, Harsh Prateek Bora <harshpb@linux.ibm.com>, qemu-ppc@nongnu.org Subject: [PULL 83/91] hw/ppc/spapr_pci: Do not create DT for disabled PCI device Message-ID: <be7c4eca969b0c1a17a4426c9ef2fbdb3b731d2f.1719929191.git.mst@redhat.com> References: <cover.1719929191.git.mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <cover.1719929191.git.mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-ppc@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-ppc.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-ppc>, <mailto:qemu-ppc-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-ppc> List-Post: <mailto:qemu-ppc@nongnu.org> List-Help: <mailto:qemu-ppc-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-ppc>, <mailto:qemu-ppc-request@nongnu.org?subject=subscribe> Errors-To: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org |
Series |
None
|
expand
|
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index 7cf9904c35..f63182a03c 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c @@ -1296,6 +1296,10 @@ static void spapr_dt_pci_device_cb(PCIBus *bus, PCIDevice *pdev, return; } + if (!pdev->enabled) { + return; + } + err = spapr_dt_pci_device(p->sphb, pdev, p->fdt, p->offset); if (err < 0) { p->err = err;