diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-09-17 21:44:53 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-09-19 11:28:40 +0200 |
commit | 9adbaad318cddd300c42dbbbc88991cdc9cecd99 (patch) | |
tree | a598e2a45459bf967e277831cc8af455418e787d /hw/usb | |
parent | b21da4e504fbdb907543a918b190783dc896d8e1 (diff) | |
download | qemu-9adbaad318cddd300c42dbbbc88991cdc9cecd99.zip qemu-9adbaad318cddd300c42dbbbc88991cdc9cecd99.tar.gz qemu-9adbaad318cddd300c42dbbbc88991cdc9cecd99.tar.bz2 |
usb: Also reset max_packet_size on ep_reset
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r-- | hw/usb/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/usb/core.c b/hw/usb/core.c index 31960c2..cf59a1a 100644 --- a/hw/usb/core.c +++ b/hw/usb/core.c @@ -622,6 +622,7 @@ void usb_ep_reset(USBDevice *dev) dev->ep_ctl.nr = 0; dev->ep_ctl.type = USB_ENDPOINT_XFER_CONTROL; dev->ep_ctl.ifnum = 0; + dev->ep_ctl.max_packet_size = 64; dev->ep_ctl.dev = dev; dev->ep_ctl.pipeline = false; for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) { @@ -633,6 +634,8 @@ void usb_ep_reset(USBDevice *dev) dev->ep_out[ep].type = USB_ENDPOINT_XFER_INVALID; dev->ep_in[ep].ifnum = USB_INTERFACE_INVALID; dev->ep_out[ep].ifnum = USB_INTERFACE_INVALID; + dev->ep_in[ep].max_packet_size = 0; + dev->ep_out[ep].max_packet_size = 0; dev->ep_in[ep].dev = dev; dev->ep_out[ep].dev = dev; dev->ep_in[ep].pipeline = false; |