All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Thomas Huth <thuth@redhat.com>, qemu-devel@nongnu.org
Cc: "Ilya Leoshkevich" <iii@linux.ibm.com>,
	"BALATON Zoltan" <balaton@eik.bme.hu>,
	"Hervé Poussineau" <hpoussin@reactos.org>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Matthew Rosato" <mjrosato@linux.ibm.com>,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Glenn Miles" <milesg@linux.ibm.com>,
	"Samuel Tardieu" <sam@rfc1149.net>,
	qemu-block@nongnu.org, "Patrick Leis" <venture@google.com>,
	"David Hildenbrand" <david@redhat.com>,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
	"Tyrone Ting" <kfting@nuvoton.com>,
	"Eric Farman" <farman@linux.ibm.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Halil Pasic" <pasic@linux.ibm.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Kevin Wolf" <kwolf@redhat.com>,
	"Alistair Francis" <alistair@alistair23.me>,
	"Bernhard Beschow" <shentey@gmail.com>,
	"Hanna Reitz" <hreitz@redhat.com>, "Hao Wu" <wuhaotsh@google.com>,
	qemu-s390x@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org
Subject: [PATCH-for-10.0 08/12] hw/misc/pll: Do not expose as user-creatable
Date: Tue, 25 Mar 2025 23:43:06 +0100	[thread overview]
Message-ID: <20250325224310.8785-9-philmd@linaro.org> (raw)
In-Reply-To: <20250325224310.8785-1-philmd@linaro.org>

All these devices are part of SoC components and can not
be created manually.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/misc/bcm2835_cprman.c | 8 ++++++++
 hw/misc/npcm_clk.c       | 6 ++++++
 hw/misc/stm32l4x5_rcc.c  | 4 ++++
 3 files changed, 18 insertions(+)

diff --git a/hw/misc/bcm2835_cprman.c b/hw/misc/bcm2835_cprman.c
index aa14cd931f5..0c4d4b7de50 100644
--- a/hw/misc/bcm2835_cprman.c
+++ b/hw/misc/bcm2835_cprman.c
@@ -137,6 +137,8 @@ static void pll_class_init(ObjectClass *klass, void *data)
 
     device_class_set_legacy_reset(dc, pll_reset);
     dc->vmsd = &pll_vmstate;
+    /* Reason: Part of BCM2835CprmanState component */
+    dc->user_creatable = false;
 }
 
 static const TypeInfo cprman_pll_info = {
@@ -241,6 +243,8 @@ static void pll_channel_class_init(ObjectClass *klass, void *data)
 
     device_class_set_legacy_reset(dc, pll_channel_reset);
     dc->vmsd = &pll_channel_vmstate;
+    /* Reason: Part of BCM2835CprmanState component */
+    dc->user_creatable = false;
 }
 
 static const TypeInfo cprman_pll_channel_info = {
@@ -362,6 +366,8 @@ static void clock_mux_class_init(ObjectClass *klass, void *data)
 
     device_class_set_legacy_reset(dc, clock_mux_reset);
     dc->vmsd = &clock_mux_vmstate;
+    /* Reason: Part of BCM2835CprmanState component */
+    dc->user_creatable = false;
 }
 
 static const TypeInfo cprman_clock_mux_info = {
@@ -416,6 +422,8 @@ static void dsi0hsck_mux_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->vmsd = &dsi0hsck_mux_vmstate;
+    /* Reason: Part of BCM2835CprmanState component */
+    dc->user_creatable = false;
 }
 
 static const TypeInfo cprman_dsi0hsck_mux_info = {
diff --git a/hw/misc/npcm_clk.c b/hw/misc/npcm_clk.c
index 0e85974cf96..b6a893ffb22 100644
--- a/hw/misc/npcm_clk.c
+++ b/hw/misc/npcm_clk.c
@@ -1108,6 +1108,8 @@ static void npcm7xx_clk_pll_class_init(ObjectClass *klass, void *data)
 
     dc->desc = "NPCM7xx Clock PLL Module";
     dc->vmsd = &vmstate_npcm7xx_clk_pll;
+    /* Reason: Part of NPCMCLKState component */
+    dc->user_creatable = false;
 }
 
 static void npcm7xx_clk_sel_class_init(ObjectClass *klass, void *data)
@@ -1116,6 +1118,8 @@ static void npcm7xx_clk_sel_class_init(ObjectClass *klass, void *data)
 
     dc->desc = "NPCM7xx Clock SEL Module";
     dc->vmsd = &vmstate_npcm7xx_clk_sel;
+    /* Reason: Part of NPCMCLKState component */
+    dc->user_creatable = false;
 }
 
 static void npcm7xx_clk_divider_class_init(ObjectClass *klass, void *data)
@@ -1124,6 +1128,8 @@ static void npcm7xx_clk_divider_class_init(ObjectClass *klass, void *data)
 
     dc->desc = "NPCM7xx Clock Divider Module";
     dc->vmsd = &vmstate_npcm7xx_clk_divider;
+    /* Reason: Part of NPCMCLKState component */
+    dc->user_creatable = false;
 }
 
 static void npcm_clk_class_init(ObjectClass *klass, void *data)
diff --git a/hw/misc/stm32l4x5_rcc.c b/hw/misc/stm32l4x5_rcc.c
index fd8466dff34..158b743cae7 100644
--- a/hw/misc/stm32l4x5_rcc.c
+++ b/hw/misc/stm32l4x5_rcc.c
@@ -150,6 +150,8 @@ static void clock_mux_class_init(ObjectClass *klass, void *data)
     rc->phases.hold = clock_mux_reset_hold;
     rc->phases.exit = clock_mux_reset_exit;
     dc->vmsd = &clock_mux_vmstate;
+    /* Reason: Part of Stm32l4x5RccState component */
+    dc->user_creatable = false;
 }
 
 static void clock_mux_set_enable(RccClockMuxState *mux, bool enabled)
@@ -302,6 +304,8 @@ static void pll_class_init(ObjectClass *klass, void *data)
     rc->phases.hold = pll_reset_hold;
     rc->phases.exit = pll_reset_exit;
     dc->vmsd = &pll_vmstate;
+    /* Reason: Part of Stm32l4x5RccState component */
+    dc->user_creatable = false;
 }
 
 static void pll_set_vco_multiplier(RccPllState *pll, uint32_t vco_multiplier)
-- 
2.47.1


  parent reply	other threads:[~2025-03-25 22:44 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-25 22:42 [PATCH-for-10.0 00/12] hw: Categorize few devices and add their descriptions Philippe Mathieu-Daudé
2025-03-25 22:42 ` [PATCH-for-10.0 01/12] hw/audio/wm8750: Categorize and add description Philippe Mathieu-Daudé
2025-03-26  6:47   ` Thomas Huth
2025-03-26  6:57     ` Thomas Huth
2025-03-26 12:39       ` BALATON Zoltan
2025-03-26 12:46         ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 02/12] hw/block/m25p80: " Philippe Mathieu-Daudé
2025-03-26  6:59   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 03/12] hw/display/dm163: Add description Philippe Mathieu-Daudé
2025-03-26  7:01   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 04/12] hw/dma/i82374: Categorize and add description Philippe Mathieu-Daudé
2025-03-26  7:04   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 05/12] hw/gpio/pca9552: " Philippe Mathieu-Daudé
2025-03-26  7:05   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 06/12] hw/i2c/pca954x: " Philippe Mathieu-Daudé
2025-03-25 22:55   ` Corey Minyard
2025-03-26  7:06   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 07/12] hw/misc/axp2xx: " Philippe Mathieu-Daudé
2025-03-26  7:08   ` Thomas Huth
2025-03-25 22:43 ` Philippe Mathieu-Daudé [this message]
2025-03-26  7:08   ` [PATCH-for-10.0 08/12] hw/misc/pll: Do not expose as user-creatable Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 09/12] hw/nvram/xlnx-efuse: " Philippe Mathieu-Daudé
2025-03-26  7:09   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 10/12] hw/rtc: Categorize and add description Philippe Mathieu-Daudé
2025-03-25 23:23   ` BALATON Zoltan
2025-03-27 20:31   ` Bernhard Beschow
2025-03-25 22:43 ` [PATCH-for-10.0 11/12] hw/sensor/temp: " Philippe Mathieu-Daudé
2025-03-26  7:11   ` Thomas Huth
2025-03-25 22:43 ` [RFC PATCH-for-10.0 12/12] hw/s390x/zpci: Re-categorize as BRIDGE Philippe Mathieu-Daudé
2025-03-26  6:54   ` Thomas Huth
2025-03-31 14:35 ` [PATCH-for-10.0 00/12] hw: Categorize few devices and add their descriptions Philippe Mathieu-Daudé

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=20250325224310.8785-9-philmd@linaro.org \
    --to=philmd@linaro.org \
    --cc=alistair@alistair23.me \
    --cc=balaton@eik.bme.hu \
    --cc=borntraeger@linux.ibm.com \
    --cc=david@redhat.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=farman@linux.ibm.com \
    --cc=hpoussin@reactos.org \
    --cc=hreitz@redhat.com \
    --cc=iii@linux.ibm.com \
    --cc=kfting@nuvoton.com \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=milesg@linux.ibm.com \
    --cc=mjrosato@linux.ibm.com \
    --cc=pasic@linux.ibm.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=sam@rfc1149.net \
    --cc=shentey@gmail.com \
    --cc=thuth@redhat.com \
    --cc=venture@google.com \
    --cc=wuhaotsh@google.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.