usb-host: fix usb3ep0quirk test
commita9be4e7c48c4892c836bda1be4d550bb1a6732bd
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 23 Oct 2015 12:27:10 +0000 (23 14:27 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 3 Nov 2015 10:56:23 +0000 (3 11:56 +0100)
tree1a14656ea7ab0249a0e8dbce57a2f42229022088
parentcbf82fa01e6fd4ecb234b235b10ffce548154a95
usb-host: fix usb3ep0quirk test

usb->speed is the usb speed the device is actually running on in the
qemu emulation (i.e. from the guests point of view).  So when plugging
usb3 devices into ehci hostadapter this is HIGH not SUPER.

To figure whenever the host talks to the device with superspeed we
have to check speedmask instead and see whenever the superspeed bit
is set there.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1445603230-11840-1-git-send-email-kraxel@redhat.com
hw/usb/host-libusb.c