qemu/hw/input
Mark Cave-Ayland 167f1667b1 adb: fix adb-mouse read length and revert disable-reg3-direct-writes workaround
Commit 84051eb400 "adb: add property to disable direct reg 3 writes" introduced
a workaround for spurious writes to ADB register 3 when MacOS 9 enables
autopoll on the mouse device. Further analysis shows that the problem is that
only a partial request is sent, and since the len parameter is ignored then
stale data from the previous request is used causing the incorrect address
assignment.

Remove the disable-reg3-direct-writes workaround and instead check the length
parameter when the write is attempted, discarding the invalid request.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200623204936.24064-3-mark.cave-ayland@ilande.co.uk>
2020-06-26 10:13:51 +01:00
..
adb-internal.h Supply missing header guards 2019-06-12 13:20:21 +02:00
adb-kbd.c adb: fix adb-mouse read length and revert disable-reg3-direct-writes workaround 2020-06-26 10:13:51 +01:00
adb-mouse.c adb: fix adb-mouse read length and revert disable-reg3-direct-writes workaround 2020-06-26 10:13:51 +01:00
adb.c adb: fix adb-mouse read length and revert disable-reg3-direct-writes workaround 2020-06-26 10:13:51 +01:00
hid.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
Kconfig hw/input: Do not enable CONFIG_PCKBD by default 2020-02-04 09:01:31 +01:00
lasips2.c hppa: add emulation of LASI PS2 controllers 2020-01-27 10:49:51 -08:00
lm832x.c hw/input/lm832x: Convert reset handler to DeviceReset 2019-10-15 18:18:08 -03:00
Makefile.objs hw/*/Makefile.objs: Move many .o files to common-objs 2020-02-04 09:00:57 +01:00
milkymist-softusb.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
pckbd.c acpi: move aml builder code for i8042 (kbd+mouse) device 2020-06-24 17:18:28 -04:00
pl050.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ps2.c hppa: add emulation of LASI PS2 controllers 2020-01-27 10:49:51 -08:00
pxa2xx_keypad.c hw/input/pxa2xx_keypad: Replace hw_error() by qemu_log_mask() 2020-06-05 17:23:08 +01:00
stellaris_input.c migration: Define VMSTATE_INSTANCE_ID_ANY 2020-01-20 09:10:23 +01:00
trace-events hppa: add emulation of LASI PS2 controllers 2020-01-27 10:49:51 -08:00
tsc210x.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
tsc2005.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
vhost-user-input.c qom: Drop parameter @errp of object_property_add() & friends 2020-05-15 07:07:58 +02:00
virtio-input-hid.c qdev: Unrealize must not fail 2020-05-15 07:08:14 +02:00
virtio-input-host.c qdev: Unrealize must not fail 2020-05-15 07:08:14 +02:00
virtio-input.c qdev: Unrealize must not fail 2020-05-15 07:08:14 +02:00