All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/13] TYPE_SERIAL cleanup
@ 2026-03-03 22:21 Bernhard Beschow
  2026-03-03 22:21 ` [PATCH v2 01/13] hw/arm/Kconfig: Fix serial selection for NPCM8XX Bernhard Beschow
                   ` (12 more replies)
  0 siblings, 13 replies; 32+ messages in thread
From: Bernhard Beschow @ 2026-03-03 22:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Helge Deller, Marc-André Lureau, Steven Lee,
	Cédric Le Goater, Troy Lee, Richard Henderson,
	Mark Cave-Ayland, qemu-arm, Jamin Lin,
	Philippe Mathieu-Daudé, Paolo Bonzini, Michael S. Tsirkin,
	Andrew Jeffery, Peter Maydell, Joel Stanley, Bernhard Beschow

This series consists of cosmetic changes around TYPE_SERIAL. The biggest change
is having it derive from TYPE_SYS_BUS_DEVICE which 1) eliminates usage of
qemu_{un,}register_reset() and 2) stops all its users from accessing private
data. The latter allows TYPE_SERIAL to be ported to Rust in the (near) future.

v2:
* Pick up R-b tags. Thanks!
* Ad patch to free consumers of TYPE_SERIAL from setting up MemoryRegionOps;
  configure via properties instead which should resolve odd code (Peter)
* Improve wording in one commit message (Peter)
* Sort patches by moving char/serial last
-> Keep "Avoid implicit conversion when tracing" untouched for now. Can be
  omitted if deemed inappropriate.

Testing done:
* Make check
* Boot mpc8544ds machine with Linux and interact with it on the serial console
* Boot q35 machine with Arch Linux and interact with it on the serial console

Bernhard Beschow (13):
  hw/arm/Kconfig: Fix serial selection for NPCM8XX
  hw/arm/aspeed_ast27x0-{ssp, tsp}: Do not access SerialMM internals
    directly
  util/fifo8: Make all read-only methods const-correct
  hw/char/serial: Remove explicit cast from void pointer
  hw/char/serial: Prefer fifo8 methods over open-coding
  hw/char/serial: Reuse fifo8_num_used()
  hw/char/serial: Remove stale comment
  hw/char/serial: Add constants for Line Control Register
  hw/char/serial: Remove redundant reset
  hw/char/serial: Avoid implicit conversion when tracing
  hw/char/serial: Keep MemoryRegionOps private
  hw/char/serial: Inherit from SysBusDevice
  hw/char/serial: Plug into reset framework

 include/hw/char/serial-mm.h |   3 -
 include/hw/char/serial.h    |   8 ++-
 include/qemu/fifo8.h        |  10 +--
 hw/arm/aspeed_ast27x0-ssp.c |   7 +-
 hw/arm/aspeed_ast27x0-tsp.c |   7 +-
 hw/char/diva-gsp.c          |  23 +++---
 hw/char/serial-isa.c        |  17 +++--
 hw/char/serial-mm.c         |  59 ++--------------
 hw/char/serial-pci-multi.c  |  23 +++---
 hw/char/serial-pci.c        |  11 ++-
 hw/char/serial.c            | 137 +++++++++++++++++++++++++-----------
 util/fifo8.c                |  10 +--
 hw/arm/Kconfig              |   2 +-
 hw/char/trace-events        |   4 +-
 14 files changed, 157 insertions(+), 164 deletions(-)

-- 
2.53.0



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

end of thread, other threads:[~2026-03-05 22:49 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 22:21 [PATCH v2 00/13] TYPE_SERIAL cleanup Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 01/13] hw/arm/Kconfig: Fix serial selection for NPCM8XX Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 02/13] hw/arm/aspeed_ast27x0-{ssp, tsp}: Do not access SerialMM internals directly Bernhard Beschow
2026-03-04 15:19   ` Philippe Mathieu-Daudé
2026-03-03 22:21 ` [PATCH v2 03/13] util/fifo8: Make all read-only methods const-correct Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 04/13] hw/char/serial: Remove explicit cast from void pointer Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 05/13] hw/char/serial: Prefer fifo8 methods over open-coding Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 06/13] hw/char/serial: Reuse fifo8_num_used() Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 07/13] hw/char/serial: Remove stale comment Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 08/13] hw/char/serial: Add constants for Line Control Register Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 09/13] hw/char/serial: Remove redundant reset Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 10/13] hw/char/serial: Avoid implicit conversion when tracing Bernhard Beschow
2026-03-04 15:21   ` Philippe Mathieu-Daudé
2026-03-03 22:21 ` [PATCH v2 11/13] hw/char/serial: Keep MemoryRegionOps private Bernhard Beschow
2026-03-03 22:56   ` BALATON Zoltan
2026-03-04  1:33     ` BALATON Zoltan
2026-03-04  8:45       ` Bernhard Beschow
2026-03-04  8:38     ` Bernhard Beschow
2026-03-05 10:03   ` Peter Maydell
2026-03-05 22:48     ` Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 12/13] hw/char/serial: Inherit from SysBusDevice Bernhard Beschow
2026-03-04 12:25   ` QOM parent type "sys-bus-device" vs. "device" (was: [PATCH v2 12/13] hw/char/serial: Inherit from SysBusDevice) Markus Armbruster
2026-03-04 13:54     ` Peter Maydell
2026-03-04 14:37       ` BALATON Zoltan
2026-03-05  9:25       ` QOM parent type "sys-bus-device" vs. "device" Markus Armbruster via
2026-03-05  9:25         ` Markus Armbruster via qemu development
2026-03-05  9:30         ` Peter Maydell
2026-03-05 11:00           ` Markus Armbruster
2026-03-05 10:07   ` [PATCH v2 12/13] hw/char/serial: Inherit from SysBusDevice Peter Maydell
2026-03-05 17:53     ` Bernhard Beschow
2026-03-03 22:21 ` [PATCH v2 13/13] hw/char/serial: Plug into reset framework Bernhard Beschow
2026-03-05 10:07   ` Peter Maydell

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.