OSDN Git Service

hw/input/ps2: Convert TYPE_PS2_DEVICE to 3-phase reset
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 9 Nov 2022 17:00:08 +0000 (17:00 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Dec 2022 15:56:24 +0000 (15:56 +0000)
commit2bb3f9303706387a044fa68341550c676376055f
tree2aed7343cc1128ff2565299c505d7e6043c52570
parentc3141e21e3904408a527e9bbd08b8622f4ef8072
hw/input/ps2: Convert TYPE_PS2_DEVICE to 3-phase reset

Convert the parent class TYPE_PS2_DEVICE to 3-phase reset.  Note that
we need an 'exit' phase function as well as the usual 'hold' phase
function, because changing outbound IRQ line state is only permitted
in 'exit'.  (Strictly speaking it's not supposed to be done in a
legacy reset handler either, but you can often get away with it.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20221109170009.3498451-2-peter.maydell@linaro.org
hw/input/ps2.c