]> git.proxmox.com Git - mirror_qemu.git/commit - hw/usb/dev-storage.c
usb: add short-packet handling to usb-storage driver
authorPaul Zimmerman <pauldzim@gmail.com>
Wed, 20 May 2020 23:53:47 +0000 (16:53 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 5 Jun 2020 16:23:09 +0000 (17:23 +0100)
commit7ad3d51ebb8a522ffcad391c4bef281245739dde
treef9d42b384d8d9f0a3948a5dcd4b6bac304507b14
parent153ef1662c35ba3d3bbcedefe8dc24cfa4e8c33d
usb: add short-packet handling to usb-storage driver

The dwc-hsotg (dwc2) USB host depends on a short packet to
indicate the end of an IN transfer. The usb-storage driver
currently doesn't provide this, so fix it.

I have tested this change rather extensively using a PC
emulation with xhci, ehci, and uhci controllers, and have
not observed any regressions.

Signed-off-by: Paul Zimmerman <pauldzim@gmail.com>
Message-id: 20200520235349.21215-6-pauldzim@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/usb/dev-storage.c