qemu/hw/input
ShengYi Hung 45cd6b147b hid: fix incorrect return value for hid
The return value of hid_keyboard_write is used to set the packet's actual_length
and pass to xhci directly to allow guest know how many byte actually processed.
Therefore, return 1 to indicate a successful transfer or it will be
considered as a wrong xfer.

Signed-off-by: ShengYi Hung <aokblast@FreeBSD.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit 1c0f5142d9)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2025-10-15 23:27:03 +03:00
..
adb-internal.h Supply missing header guards 2019-06-12 13:20:21 +02:00
adb-kbd.c hw: Use device_class_set_legacy_reset() instead of opencoding 2024-09-13 15:31:44 +01:00
adb-mouse.c hw/input/adb-mouse: convert to use QemuInputHandler 2024-09-13 20:11:13 +02:00
adb.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00
hid.c hid: fix incorrect return value for hid 2025-10-15 23:27:03 +03:00
Kconfig hw/input: Remove lm832x device 2024-10-01 14:41:10 +01:00
lasips2.c hw/input: Constify VMState 2023-12-29 11:17:30 +11:00
meson.build hw/input: Remove lm832x device 2024-10-01 14:41:10 +01:00
pckbd.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
pl050.c hw/input: Constify VMState 2023-12-29 11:17:30 +11:00
ps2.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
stellaris_gamepad.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
trace-events hw/input: Remove tsc2005 touchscreen controller 2024-10-01 14:40:30 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
virtio-input-hid.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-input-host.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-input.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00