qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>,
	qemu-arm@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH for-9.2 23/53] hw/timer: Remove pxa27x-timer
Date: Mon, 9 Sep 2024 19:50:29 +0200	[thread overview]
Message-ID: <f870b3f6-0a75-43fa-a65a-e681174e340d@linaro.org> (raw)
In-Reply-To: <20240903160751.4100218-24-peter.maydell@linaro.org>

On 3/9/24 18:07, Peter Maydell wrote:
> The pxa27x-timer can be removed now we have removed the PXA2xx
> SoC models. The pxa25x-timer device must remain as it is still
> used by strongarm.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>   hw/timer/pxa2xx_timer.c | 24 ------------------------
>   1 file changed, 24 deletions(-)
> 
> diff --git a/hw/timer/pxa2xx_timer.c b/hw/timer/pxa2xx_timer.c
> index d1a3ecac2b5..3234bbb1f4a 100644
> --- a/hw/timer/pxa2xx_timer.c
> +++ b/hw/timer/pxa2xx_timer.c
> @@ -54,7 +54,6 @@
>   #define OSNR	0x20
>   
>   #define PXA25X_FREQ	3686400	/* 3.6864 MHz */
> -#define PXA27X_FREQ	3250000	/* 3.25 MHz */
>   
>   static int pxa2xx_timer4_freq[8] = {
>       [0] = 0,
> @@ -572,28 +571,6 @@ static const TypeInfo pxa25x_timer_dev_info = {
>       .class_init    = pxa25x_timer_dev_class_init,
>   };
>   
> -static Property pxa27x_timer_dev_properties[] = {
> -    DEFINE_PROP_UINT32("freq", PXA2xxTimerInfo, freq, PXA27X_FREQ),
> -    DEFINE_PROP_BIT("tm4", PXA2xxTimerInfo, flags,
> -                    PXA2XX_TIMER_HAVE_TM4, true),
> -    DEFINE_PROP_END_OF_LIST(),
> -};
> -
> -static void pxa27x_timer_dev_class_init(ObjectClass *klass, void *data)
> -{
> -    DeviceClass *dc = DEVICE_CLASS(klass);
> -
> -    dc->desc = "PXA27x timer";
> -    device_class_set_props(dc, pxa27x_timer_dev_properties);
> -}
> -
> -static const TypeInfo pxa27x_timer_dev_info = {
> -    .name          = "pxa27x-timer",
> -    .parent        = TYPE_PXA2XX_TIMER,
> -    .instance_size = sizeof(PXA2xxTimerInfo),
> -    .class_init    = pxa27x_timer_dev_class_init,
> -};
> -
>   static void pxa2xx_timer_class_init(ObjectClass *oc, void *data)
>   {
>       DeviceClass *dc = DEVICE_CLASS(oc);
> @@ -615,7 +592,6 @@ static void pxa2xx_timer_register_types(void)
>   {
>       type_register_static(&pxa2xx_timer_type_info);
>       type_register_static(&pxa25x_timer_dev_info);
> -    type_register_static(&pxa27x_timer_dev_info);
>   }
>   
>   type_init(pxa2xx_timer_register_types)

We could also remove the abstract parent:

-- >8 --
diff --git a/hw/timer/pxa2xx_timer.c b/hw/timer/pxa2xx_timer.c
index 3234bbb1f4..b379b621cc 100644
--- a/hw/timer/pxa2xx_timer.c
+++ b/hw/timer/pxa2xx_timer.c
@@ -65,7 +65,7 @@ static int pxa2xx_timer4_freq[8] = {
      [5 ... 7] = 0,
  };

-#define TYPE_PXA2XX_TIMER "pxa2xx-timer"
+#define TYPE_PXA2XX_TIMER "pxa25x-timer"
  OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxTimerInfo, PXA2XX_TIMER)


@@ -561,36 +561,21 @@ static void 
pxa25x_timer_dev_class_init(ObjectClass *klass, void *data)
      DeviceClass *dc = DEVICE_CLASS(klass);

      dc->desc = "PXA25x timer";
+    dc->realize  = pxa2xx_timer_realize;
+    dc->vmsd = &vmstate_pxa2xx_timer_regs;
      device_class_set_props(dc, pxa25x_timer_dev_properties);
  }

  static const TypeInfo pxa25x_timer_dev_info = {
      .name          = "pxa25x-timer",
-    .parent        = TYPE_PXA2XX_TIMER,
-    .instance_size = sizeof(PXA2xxTimerInfo),
-    .class_init    = pxa25x_timer_dev_class_init,
-};
-
-static void pxa2xx_timer_class_init(ObjectClass *oc, void *data)
-{
-    DeviceClass *dc = DEVICE_CLASS(oc);
-
-    dc->realize  = pxa2xx_timer_realize;
-    dc->vmsd = &vmstate_pxa2xx_timer_regs;
-}
-
-static const TypeInfo pxa2xx_timer_type_info = {
-    .name          = TYPE_PXA2XX_TIMER,
      .parent        = TYPE_SYS_BUS_DEVICE,
      .instance_size = sizeof(PXA2xxTimerInfo),
      .instance_init = pxa2xx_timer_init,
-    .abstract      = true,
-    .class_init    = pxa2xx_timer_class_init,
+    .class_init    = pxa25x_timer_dev_class_init,
  };

  static void pxa2xx_timer_register_types(void)
  {
-    type_register_static(&pxa2xx_timer_type_info);
      type_register_static(&pxa25x_timer_dev_info);
  }

---

I can post a follow-up patch but not sure it is worth it.

Regardless,

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>


  reply	other threads:[~2024-09-09 17:51 UTC|newest]

Thread overview: 112+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03 16:06 [PATCH for-9.2 00/53] arm: Drop deprecated boards Peter Maydell
2024-09-03 16:06 ` [PATCH for-9.2 01/53] hw/arm: Remove deprecated akita, borzoi, spitz, terrier, tosa boards Peter Maydell
2024-09-03 21:29   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 02/53] hw/input: Drop ADS7846 device Peter Maydell
2024-09-04  8:54   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 03/53] hw/adc: Remove MAX111X device Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 04/53] hw/gpio: Remove MAX7310 device Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 05/53] hw/ide: Remove DSCM-1XXXX microdrive device model Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 06/53] hw/display: Remove tc6393xb device Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 07/53] hw/arm/KConfig: Replace ZAURUS with ZAURUS_SCOOP Peter Maydell
2024-09-09 17:43   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 08/53] hw/arm: Remove 'cheetah' machine Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 09/53] hw/arm: Remove 'connex' and 'verdex' machines Peter Maydell
2024-09-03 21:27   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 10/53] hw/arm: Remove 'mainstone' machine Peter Maydell
2024-09-05 11:51   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 11/53] hw/misc: Remove MAINSTONE_FPGA device Peter Maydell
2024-09-05 11:52   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 12/53] hw/arm: Remove 'z2' machine Peter Maydell
2024-09-05 11:54   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 13/53] hw/arm: Remove STRONGARM->PXA2XX dependency Peter Maydell
2024-09-09 17:44   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 14/53] hw/timer/pxa2xx_timer: Remove use of pxa.h header Peter Maydell
2024-09-09 17:44   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 15/53] hw/arm: Remove pxa2xx.c Peter Maydell
2024-09-09 17:45   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 16/53] hw/sd: Remove pxa2xx_mmci.c Peter Maydell
2024-09-03 20:32   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 17/53] hw/input: Remove pxa2xx_keypad Peter Maydell
2024-09-09 17:45   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 18/53] hw/display: Remove pxa2xx_lcd.c Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 19/53] hw/dma: Remove pxa2xx_dma Peter Maydell
2024-09-03 21:33   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 20/53] hw/pcmcia: Remove pxa2xx pcmcia device Peter Maydell
2024-09-05 11:47   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 21/53] hw/arm: Remove pxa2xx_gpio Peter Maydell
2024-09-05 11:48   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 22/53] hw/arm: Remove pxa2xx_pic Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 23/53] hw/timer: Remove pxa27x-timer Peter Maydell
2024-09-09 17:50   ` Philippe Mathieu-Daudé [this message]
2024-09-03 16:07 ` [PATCH for-9.2 24/53] vl.c: Remove pxa2xx-specific -portrait and -rotate options Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 25/53] hw/arm: Remove 'n800' and 'n810' machines Peter Maydell
2024-09-04  9:01   ` Thomas Huth
2024-09-05 11:49   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 26/53] hw/misc: Remove cbus Peter Maydell
2024-09-03 21:37   ` Philippe Mathieu-Daudé
2024-09-04  9:22     ` Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 27/53] hw/display: Remove Blizzard display device Peter Maydell
2024-09-04  9:24   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 28/53] hw/input: Remove tsc2005 touchscreen controller Peter Maydell
2024-09-04  9:26   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 29/53] hw/input: Remove tsc210x device Peter Maydell
2024-09-04  9:35   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 30/53] hw/rtc: Remove twl92230 device Peter Maydell
2024-09-04 10:04   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 31/53] hw/input: Remove lm832x device Peter Maydell
2024-09-04 10:05   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 32/53] hw/block: Remove OneNAND device Peter Maydell
2024-09-04 10:08   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 33/53] hw/usb: Remove tusb6010 USB controller Peter Maydell
2024-09-04 10:09   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 34/53] hw/usb: Remove MUSB USB host controller Peter Maydell
2024-09-04 10:11   ` Thomas Huth
2024-09-03 16:07 ` [PATCH for-9.2 35/53] hw: Remove PCMCIA subsystem Peter Maydell
2024-09-04 13:11   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 36/53] docs: Document removal of old Arm boards Peter Maydell
2024-09-03 21:25   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 37/53] hw/arm: Remove omap2.c Peter Maydell
2024-09-09 17:51   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 38/53] hw/gpio: Remove TYPE_OMAP2_GPIO Peter Maydell
2024-09-09 17:52   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 39/53] hw/char: Remove omap2_uart Peter Maydell
2024-09-09 17:52   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 40/53] hw/intc: Remove omap2-intc device Peter Maydell
2024-09-09 18:02   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 41/53] hw/sd: Remove omap2_mmc device Peter Maydell
2024-09-03 20:33   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 42/53] hw/misc: Remove omap_sdrc device Peter Maydell
2024-09-09 17:53   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 43/53] hw/misc: Remove omap_gpmc Peter Maydell
2024-09-09 17:54   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 44/53] hw/timer: Remove omap_gptimer Peter Maydell
2024-09-09 17:54   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 45/53] hw/timer: Remove omap_synctimer Peter Maydell
2024-09-09 17:55   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 46/53] hw/block: Remove ecc Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 47/53] hw/ssi: Remove omap_mcspi Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 48/53] hw/misc: Remove omap_tap device Peter Maydell
2024-09-09 17:56   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 49/53] hw/display: Remove omap_dss Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 50/53] hw/misc: Remove omap_l4 device Peter Maydell
2024-09-09 17:56   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 51/53] hw/misc/omap_clk: Remove OMAP2-specifics Peter Maydell
2024-09-03 16:07 ` [PATCH for-9.2 52/53] hw/dma: Remove omap_dma4 device Peter Maydell
2024-09-09 17:57   ` Philippe Mathieu-Daudé
2024-09-03 16:07 ` [PATCH for-9.2 53/53] hw: Remove omap2 specific defines and enums Peter Maydell
2024-09-09 17:58   ` Philippe Mathieu-Daudé
2024-09-03 16:55 ` [PATCH for-9.2 00/53] arm: Drop deprecated boards Paolo Bonzini
2024-09-03 17:03   ` Peter Maydell
2024-09-03 17:15     ` Paolo Bonzini
2024-09-05 12:06       ` Peter Maydell
2024-09-09 13:40 ` Philippe Mathieu-Daudé
2024-09-09 13:44   ` Peter Maydell
2024-09-09 17:25     ` Philippe Mathieu-Daudé
2024-09-09 18:16       ` Peter Maydell
2024-09-09 14:55   ` Guenter Roeck
2024-09-09 15:02     ` Peter Maydell
2024-09-09 15:45       ` Philippe Mathieu-Daudé
2024-09-09 17:02         ` Guenter Roeck
2024-09-10 10:17       ` Peter Maydell
2024-09-16 10:26 ` Peter Maydell
2024-10-01 13:04   ` Peter Maydell

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=f870b3f6-0a75-43fa-a65a-e681174e340d@linaro.org \
    --to=philmd@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@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).