usb-mtp: add support for basic mtp events
commit93d592e3d1a45e4c0b3969e1fbbc459d6df826aa
authorBandan Das <bsd@redhat.com>
Mon, 23 Nov 2015 21:37:05 +0000 (23 16:37 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Dec 2015 08:26:10 +0000 (15 09:26 +0100)
treea1ce8405201173ed93743b95f002a91e361f6fec
parent8e3e3897ce6d9e927053229ab0672f079c9c1501
usb-mtp: add support for basic mtp events

When the host polls for events, we check our
events qlist and send one event at a time. Also, note
that the event packet needs to be sent in one go, so
I increased the max packet size to 64.

Tested with a linux guest.

Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 1448314625-3855-5-git-send-email-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c