usb-hub: don't trigger assert on packet completion.
Calling usb_packet_complete() recursively when passing up the completionevent up the chain for devices connected via usb hub will trigger anassert. So don't do that, make the usb hub emulation call the upstream...
usb-storage: fix NULL pointer dereference.
When a usb packet is canceled we need to check whenever we actually havea scsi request in flight before we try to cancel it.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-hub: need to check dev->attached
commit 891fb2cd4592b6fe76106a69e0ca40efbf82726a did that for all hostcontrollers, the usb hub was left out by accident.
usb: fix port reset
commit 891fb2cd4592b6fe76106a69e0ca40efbf82726a removed the implicitdetach before (re-)attaching in usb_attach(). Some usb host controllersused that behavior though to do a port reset by a detach+attachsequence.
This patch establishes old behavior by adding a new usb_reset() function...
usb-host: factor out code
Move code to claim usb ports and to disconnect usb interfaces intousb_host_claim_port and usb_host_disconnect_ifaces functions. Nofunctional change.
usb-host: handle USBDEVFS_SETCONFIGURATION returning EBUSY
In case the host uses the usb device usbfs will refuse to set theconfiguration due to the device being busy. Handle this case bydisconnection the interfaces, then trying again.
hw/usb-ohci: Fix OHCI_TD_T1 bit position definition
The OHCI Transfer Descriptor T (DataToggle) bits are 24 and 25;fix an error which accidentally overlaid them both on the same bit.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ohci: Honour endpoint maximum packet size
Honour the maximum packet size for endpoints; this applies whensending non-isochronous data and means we transfer only asmuch as the endpoint allows, leaving the transfer descriptoron the list for another go next time around. This allows...
usb-hid: activate usb tablet / mouse after migration.
qemu uses the ps/2 mouse by default. The usb tablet (or mouse) isactivated as soon as qemu sees some guest activity on the device,i.e. polling for HID events. That used to work fine for both fresh...
Merge remote-tracking branch 'qmp/queue/qmp' into staging
View all revisions | View revisions
Also available in: Atom