qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Harsh Prateek Bora <harshpb@linux.ibm.com>
To: qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Cc: npiggin@gmail.com, danielhb413@gmail.com, clg@kaod.org
Subject: [PATCH v3 05/14] ppc/spapr: remove deprecated machine pseries-2.5
Date: Mon,  7 Oct 2024 21:08:29 +0530	[thread overview]
Message-ID: <20241007153838.1085522-6-harshpb@linux.ibm.com> (raw)
In-Reply-To: <20241007153838.1085522-1-harshpb@linux.ibm.com>

Commit 1392617d3576 intended to tag pseries-2.1 - 2.11 machines as
deprecated with reasons mentioned in its commit log.
Removing pseries-2.5 specific code with this patch for now.

Also drop sPAPRMachineClass::use_ohci_by_default which is now useless.

Suggested-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
---
 include/hw/ppc/spapr.h |  1 -
 hw/ppc/spapr.c         | 25 +------------------------
 2 files changed, 1 insertion(+), 25 deletions(-)

diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 1821ef96c7..6e9e62386c 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -143,7 +143,6 @@ struct SpaprMachineClass {
     /*< public >*/
     bool dr_phb_enabled;       /* enable dynamic-reconfig/hotplug of PHBs */
     bool update_dt_enabled;    /* enable KVMPPC_H_UPDATE_DT */
-    bool use_ohci_by_default;  /* use USB-OHCI instead of XHCI */
     bool pre_2_10_has_unused_icps;
     bool legacy_irq_allocation;
     uint32_t nr_xirqs;
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 4d7705c89f..f63843d107 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -3070,11 +3070,7 @@ static void spapr_machine_init(MachineState *machine)
     }
 
     if (machine->usb) {
-        if (smc->use_ohci_by_default) {
-            pci_create_simple(phb->bus, -1, "pci-ohci");
-        } else {
-            pci_create_simple(phb->bus, -1, "nec-usb-xhci");
-        }
+        pci_create_simple(phb->bus, -1, "nec-usb-xhci");
 
         if (has_vga) {
             USBBus *usb_bus;
@@ -5300,25 +5296,6 @@ static void spapr_machine_2_6_class_options(MachineClass *mc)
 
 DEFINE_SPAPR_MACHINE(2, 6);
 
-/*
- * pseries-2.5
- */
-
-static void spapr_machine_2_5_class_options(MachineClass *mc)
-{
-    SpaprMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
-    static GlobalProperty compat[] = {
-        { "spapr-vlan", "use-rx-buffer-pools", "off" },
-    };
-
-    spapr_machine_2_6_class_options(mc);
-    smc->use_ohci_by_default = true;
-    compat_props_add(mc->compat_props, hw_compat_2_5, hw_compat_2_5_len);
-    compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
-}
-
-DEFINE_SPAPR_MACHINE(2, 5);
-
 static void spapr_machine_register_types(void)
 {
     type_register_static(&spapr_machine_info);
-- 
2.45.2



  parent reply	other threads:[~2024-10-07 15:40 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-07 15:38 [PATCH v3 00/14] ppc/spapr: remove deprecated machines specific code Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 01/14] ppc/spapr: remove deprecated machine pseries-2.1 Harsh Prateek Bora
2024-10-07 20:23   ` Philippe Mathieu-Daudé
2024-10-08  6:55     ` Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 02/14] ppc/spapr: remove deprecated machine pseries-2.2 Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 03/14] ppc/spapr: remove deprecated machine pseries-2.3 Harsh Prateek Bora
2024-10-11  6:07   ` Cédric Le Goater
2024-10-07 15:38 ` [PATCH v3 04/14] ppc/spapr: remove deprecated machine pseries-2.4 Harsh Prateek Bora
2024-10-11  6:06   ` Cédric Le Goater
2024-10-07 15:38 ` Harsh Prateek Bora [this message]
2024-10-11  6:05   ` [PATCH v3 05/14] ppc/spapr: remove deprecated machine pseries-2.5 Cédric Le Goater
2024-10-07 15:38 ` [PATCH v3 06/14] ppc/spapr: remove deprecated machine pseries-2.6 Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 07/14] ppc/spapr: remove deprecated machine pseries-2.7 Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 08/14] ppc/spapr: remove deprecated machine pseries-2.8 Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 09/14] ppc/spapr: remove deprecated machine pseries-2.9 Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 10/14] ppc/spapr: remove deprecated machine pseries-2.10 Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 11/14] ppc/spapr: remove deprecated machine pseries-2.11 Harsh Prateek Bora
2024-10-07 15:38 ` [PATCH v3 12/14] ppc/spapr: remove deprecated machine pseries-2.12-sxxm Harsh Prateek Bora
2024-10-11  5:58   ` Cédric Le Goater
2024-10-07 15:38 ` [PATCH v3 13/14] ppc/spapr: remove deprecated machine pseries-2.12 Harsh Prateek Bora
2024-10-11  6:01   ` Cédric Le Goater
2024-10-07 15:38 ` [PATCH v3 14/14] ppc/spapr: remove deprecated machine pseries-3.0 Harsh Prateek Bora
2024-10-11  5:57   ` Cédric Le Goater
2025-04-29 13:29     ` Cédric Le Goater
2025-05-02 10:24       ` Harsh Prateek Bora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241007153838.1085522-6-harshpb@linux.ibm.com \
    --to=harshpb@linux.ibm.com \
    --cc=clg@kaod.org \
    --cc=danielhb413@gmail.com \
    --cc=npiggin@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).