Message ID | 723c5b4628d047e43825a046c6ee517b82b88117.1720046570.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=Xl9qjKtG; 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 4WDw5n1BXcz1xqt for <incoming@patchwork.ozlabs.org>; Thu, 4 Jul 2024 08:52:29 +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 1sP8ny-00046l-8k; Wed, 03 Jul 2024 18:50:26 -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 1sP8nv-0003nJ-V7 for qemu-ppc@nongnu.org; Wed, 03 Jul 2024 18:50:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.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 1sP8ns-0007Sa-FM for qemu-ppc@nongnu.org; Wed, 03 Jul 2024 18:50:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720047018; 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=Xl9qjKtGM4+MgMj6kSxF7n4E3nw5wr/YRF85wPTkaYGHPhRaIdDc1o/8ak63ROd8xzMZ1/ bM2hQipj7OWm0JXk/7aUdetGlIMY16jgBHV2iDNgeloQ2UAcmm3ejCAyfQdMK67k9IbSkj QGB1mo7PHXLTB49gFVW4PX8fquDLjj0= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-97-4ds7VxAkMf2F-1_sUyUDdA-1; Wed, 03 Jul 2024 18:50:14 -0400 X-MC-Unique: 4ds7VxAkMf2F-1_sUyUDdA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4263fff5eaeso105675e9.0 for <qemu-ppc@nongnu.org>; Wed, 03 Jul 2024 15:50:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720047013; x=1720651813; 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=HsQzq8gQ5/18HadgUnnKK03xe8o23X9KBkzACgWieGeno4FWr7Zh3CcN5/LiAw6sz4 f8GJmYka7L/iO67OKUf/BqD4QwGsiLsObSlfsDsmmZZbn34a66do+qG2JorStCYJ+F0I 31bFG94HmXRiqzTdF4HPLSJZt/pRzD3uy9R+OPXYJxgb9i+R8zxWAtOGNyntNe9ZaBxu /Hx88vdirCob0eC4tlHoxGSQD7VuL/jK/MKJiNCKb1503eLneqWVu6IGN/bVzZcTmfW9 nU3905dxjzUAWmi1NEjYDkiNICfBhQh3yT2N9LShqOY+t/aieFKl1FYfWssKVgE2LXxj bEqw== X-Forwarded-Encrypted: i=1; AJvYcCU9WcEpHif48S40Iq99/8skzm2wRALHxVPe1+Wf1PJQi9Bdm2fKTeeEA8xiz1e3G5mNxYF3+YTRYJ01luTsn6O0BUaw X-Gm-Message-State: AOJu0YwfbHiv6WP3Z/z+S1C9LcWRJrQvro6C4MV9YIObeowpuLCK29rc zzrp9zdWUJEUD7lPCsYq856GythxwGh7sHU3KND0UaIpz3/tL/8PfeVbOyjiwe2FlA+pTgUSmfB 8/XSMu84rv1vn3c5ep5e93IcsoMxioQloc7hdWc7CNzuGfic70w== X-Received: by 2002:a05:600c:63ce:b0:424:aa83:ef01 with SMTP id 5b1f17b1804b1-4264a3d1e2emr357075e9.10.1720047012907; Wed, 03 Jul 2024 15:50:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXo/zzTggwe17jzj0Xhk3SPjb+uH2NxGoezo62WozFu8slXIycgNJSg2oK2kTztQNBOV4Mfg== X-Received: by 2002:a05:600c:63ce:b0:424:aa83:ef01 with SMTP id 5b1f17b1804b1-4264a3d1e2emr356935e9.10.1720047012419; Wed, 03 Jul 2024 15:50:12 -0700 (PDT) Received: from redhat.com ([2a0d:6fc7:441:91a8:a47d:5a9:c02f:92f2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a21cbb7sm1204725e9.26.2024.07.03.15.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 15:50:11 -0700 (PDT) Date: Wed, 3 Jul 2024 18:50:08 -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 v3 77/85] hw/ppc/spapr_pci: Do not create DT for disabled PCI device Message-ID: <723c5b4628d047e43825a046c6ee517b82b88117.1720046570.git.mst@redhat.com> References: <cover.1720046570.git.mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <cover.1720046570.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.129.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;