All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 00/24] hw/aspeed: Convert all Aspeed devices to DEFINE_TYPES() with inlined TypeInfo
@ 2026-06-01  2:50 Jamin Lin
  2026-06-01  2:50 ` [PATCH v1 01/24] hw/misc/aspeed_hace: Convert " Jamin Lin
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: Jamin Lin @ 2026-06-01  2:50 UTC (permalink / raw)
  To: Cédric Le Goater, Peter Maydell, Steven Lee, Troy Lee,
	Kane Chen, Andrew Jeffery, Joel Stanley, Alistair Francis,
	Ninad Palsule, Jason Wang, open list:ASPEED BMCs,
	open list:All patches CC here
  Cc: Jamin Lin, Troy Lee

The QEMU community now prefers the DEFINE_TYPES() macro over the legacy
type_register_static()/type_init() pattern for device type registration.
DEFINE_TYPES() accepts an array of TypeInfo structs and registers them
all in a single call, making the registration code more concise and
consistent with modern QEMU coding style.

This series converts all Aspeed device models to use DEFINE_TYPES() and
further inlines the individual static TypeInfo variable declarations
directly into the types array, eliminating the need for standalone
TypeInfo variables scattered throughout each file.

v1:
  The changes are purely mechanical refactoring with no functional
  difference. The 24 patches cover all Aspeed-related device models
  across hw/adc, hw/arm, hw/fsi, hw/gpio, hw/i2c, hw/intc, hw/misc,
  hw/net, hw/nvram, hw/pci-host, hw/rtc, hw/ssi, hw/timer and
  hw/watchdog.

Jamin Lin (24):
  hw/misc/aspeed_hace: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/misc/aspeed_lpc: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/misc/aspeed_ltpi: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/misc/aspeed_pwm: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/misc/aspeed_sbc: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/misc/aspeed_scu: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/misc/aspeed_sdmc: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/misc:aspeed_sli: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/misc/aspeed_xdma: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/adc/aspeed_adc: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/arm/aspeed_ast1700: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/gpio/aspeed_gpio: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/gpio/aspeed_sgpio: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/intc/aspeed_intc: convert to DEFINE_TYPES() with inlined TypeInfo
  hw/intc/aspeed_vic: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/rtc/aspeed_rtc: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/watchdog/wdt_aspeed: Convert to DEFINE_TYPES() with inlined
    TypeInfo
  hw/nvram/aspeed_otp: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/timer/aspeed_timer: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/fsi/aspeed_apb2opb: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/pci-host/aspeed_pcie: Convert to DEFINE_TYPES() with inlined
    TypeInfo
  hw/i2c/aspeed_i2c: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/net/ftgmac100: Convert to DEFINE_TYPES() with inlined TypeInfo
  hw/ssi/aspeed_smc: Convert to DEFINE_TYPES() with inlined TypeInfo

 hw/adc/aspeed_adc.c       |  95 +++++++---------
 hw/arm/aspeed_ast1700.c   |  21 ++--
 hw/fsi/aspeed_apb2opb.c   |  42 +++----
 hw/gpio/aspeed_gpio.c     | 107 ++++++++----------
 hw/gpio/aspeed_sgpio.c    |  37 +++----
 hw/i2c/aspeed_i2c.c       | 113 ++++++++-----------
 hw/intc/aspeed_intc.c     | 121 +++++++++-----------
 hw/intc/aspeed_vic.c      |  19 ++--
 hw/misc/aspeed_hace.c     |  81 ++++++--------
 hw/misc/aspeed_lpc.c      |  21 ++--
 hw/misc/aspeed_ltpi.c     |  19 ++--
 hw/misc/aspeed_pwm.c      |  19 ++--
 hw/misc/aspeed_sbc.c      |  46 ++++----
 hw/misc/aspeed_scu.c      | 107 ++++++++----------
 hw/misc/aspeed_sdmc.c     |  73 ++++++------
 hw/misc/aspeed_sli.c      |  44 ++++----
 hw/misc/aspeed_xdma.c     |  58 +++++-----
 hw/net/ftgmac100.c        |  32 +++---
 hw/nvram/aspeed_otp.c     |  19 ++--
 hw/pci-host/aspeed_pcie.c |  94 +++++++---------
 hw/rtc/aspeed_rtc.c       |  19 ++--
 hw/ssi/aspeed_smc.c       | 228 ++++++++++++++++----------------------
 hw/timer/aspeed_timer.c   |  83 ++++++--------
 hw/watchdog/wdt_aspeed.c  |  93 +++++++---------
 24 files changed, 678 insertions(+), 913 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2026-06-01  8:50 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-01  2:50 [PATCH v1 00/24] hw/aspeed: Convert all Aspeed devices to DEFINE_TYPES() with inlined TypeInfo Jamin Lin
2026-06-01  2:50 ` [PATCH v1 01/24] hw/misc/aspeed_hace: Convert " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 02/24] hw/misc/aspeed_lpc: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 03/24] hw/misc/aspeed_ltpi: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 04/24] hw/misc/aspeed_pwm: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 05/24] hw/misc/aspeed_sbc: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 06/24] hw/misc/aspeed_scu: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 07/24] hw/misc/aspeed_sdmc: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 08/24] hw/misc:aspeed_sli: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 09/24] hw/misc/aspeed_xdma: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 10/24] hw/adc/aspeed_adc: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 11/24] hw/arm/aspeed_ast1700: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 12/24] hw/gpio/aspeed_gpio: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 13/24] hw/gpio/aspeed_sgpio: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 14/24] hw/intc/aspeed_intc: convert " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 15/24] hw/intc/aspeed_vic: Convert " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 16/24] hw/rtc/aspeed_rtc: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 17/24] hw/watchdog/wdt_aspeed: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 18/24] hw/nvram/aspeed_otp: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 19/24] hw/timer/aspeed_timer: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 20/24] hw/fsi/aspeed_apb2opb: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 21/24] hw/pci-host/aspeed_pcie: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 22/24] hw/i2c/aspeed_i2c: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 23/24] hw/net/ftgmac100: " Jamin Lin
2026-06-01  2:50 ` [PATCH v1 24/24] hw/ssi/aspeed_smc: " Jamin Lin
2026-06-01  8:49 ` [PATCH v1 00/24] hw/aspeed: Convert all Aspeed devices " Cédric Le Goater

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.