qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-8.0 0/2] hw/input/ps2: Convert to 3-phase reset
@ 2022-11-09 17:00 Peter Maydell
  2022-11-09 17:00 ` [PATCH for-8.0 1/2] hw/input/ps2: Convert TYPE_PS2_DEVICE " Peter Maydell
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Peter Maydell @ 2022-11-09 17:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: Mark Cave-Ayland

This patchset converts the ps2 keyboard and mouse devices to 3-phase
reset. The rationale here is that it would be nice to get rid of the
device_class_set_parent_reset() function, which is used by
legacy-reset subclasses which want to chain to their parent's reset
function. There aren't very many of these devices in total, and if we
convert them all to 3-phase reset they can use the 3-phase-reset
equivalent (resettable_class_set_parent_phases()).  Eventually this
will then let us simplify the transitional code for handling old-style
device reset.

This is one of a number of patchsets to do this that I'm planning to
write and send out over the next few weeks. It's all 8.0 material.

thanks
-- PMM

Peter Maydell (2):
  hw/input/ps2: Convert TYPE_PS2_DEVICE to 3-phase reset
  hw/input/ps2.c: Convert TYPE_PS2_{KBD,MOUSE}_DEVICE to 3-phase reset

 include/hw/input/ps2.h |  2 +-
 hw/input/ps2.c         | 45 +++++++++++++++++++++++++++++-------------
 2 files changed, 32 insertions(+), 15 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2022-12-16 16:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-09 17:00 [PATCH for-8.0 0/2] hw/input/ps2: Convert to 3-phase reset Peter Maydell
2022-11-09 17:00 ` [PATCH for-8.0 1/2] hw/input/ps2: Convert TYPE_PS2_DEVICE " Peter Maydell
2022-11-09 22:34   ` Philippe Mathieu-Daudé
2022-11-10  5:36   ` Richard Henderson
2022-11-09 17:00 ` [PATCH for-8.0 2/2] hw/input/ps2.c: Convert TYPE_PS2_{KBD, MOUSE}_DEVICE " Peter Maydell
2022-11-10  5:38   ` Richard Henderson
2022-11-30 10:04   ` Philippe Mathieu-Daudé
2022-11-10 10:36 ` [PATCH for-8.0 0/2] hw/input/ps2: Convert " Mark Cave-Ayland
2022-11-10 11:22   ` Peter Maydell
2022-11-10 11:57     ` Mark Cave-Ayland
2022-12-16 16:03 ` Peter Maydell

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).