OSDN Git Service

adb: add property to disable direct reg 3 writes
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 12 Jun 2018 16:44:01 +0000 (17:44 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 16 Jun 2018 06:32:33 +0000 (16:32 +1000)
commit84051eb400495745035b52e27fe67b962b7a58fa
treece84d40f0677c11a4ff1739c8c1b5cab0be1a4c6
parentfb6649f172d6ea1a8d8980b7f93d31808eb06ff8
adb: add property to disable direct reg 3 writes

MacOS 9 has a bug in its PMU driver whereby after configuring the ADB bus
devices it sends another write to reg 3 on both devices resetting them
both back to the same address.

Add a new disable_direct_reg3_writes property to ADBDevice to disable these
direct writes which can enabled just for the upcoming pmu-adb support.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/input/adb-kbd.c
hw/input/adb-mouse.c
hw/input/adb.c
include/hw/input/adb.h