aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-ohci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-12-14 16:46:40 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-01-11 17:01:03 +0100
commit7b074a22dab4bdda9864b933f1bc811a3db42845 (patch)
tree99baa0655c7ca1b019c99fbb0574cd903a452d3a /hw/usb-ohci.c
parentac57bbb614ace4f7b8b965562826a7f7fda00cdc (diff)
downloadqemu-7b074a22dab4bdda9864b933f1bc811a3db42845.zip
qemu-7b074a22dab4bdda9864b933f1bc811a3db42845.tar.gz
qemu-7b074a22dab4bdda9864b933f1bc811a3db42845.tar.bz2
usb: hid: change serial number to "42".
It would be nice to have some way to signal our hid devices support remote wakeup. There is a descriptor bit for that of course. Problem with using is one is that older qemu versions used to set the bit even though they did *not* support remote wakeup. Bummer. This patch changes the serial number of our hid devices from "1" to "42" to signal "it is safe to enable remote wakeup". The serial number was choosen because it isn't used for anything and it is available in sysfs so it is easy to match it using udev rules like this: ACTION=="add", SUBSYSTEM=="usb", \ ATTR{product}=="QEMU USB Tablet", ATTR{serial}=="42", \ RUN+="usb_enable_autosuspend %p" Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-ohci.c')
0 files changed, 0 insertions, 0 deletions