|
|
9ae3a8 |
From ded29e4e267ff8f7cbaf815f27e2ced2e4a24775 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Date: Fri, 11 Jul 2014 14:20:46 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 12/43] usb: Also reset max_packet_size on ep_reset
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <1405088470-24115-14-git-send-email-kraxel@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 59824
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.1 qemu-kvm PATCH 13/37] usb: Also reset max_packet_size on ep_reset
|
|
|
9ae3a8 |
Bugzilla: 1075846
|
|
|
9ae3a8 |
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
From: Hans de Goede <hdegoede@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit 9adbaad318cddd300c42dbbbc88991cdc9cecd99)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/usb/core.c | 3 +++
|
|
|
9ae3a8 |
1 file changed, 3 insertions(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/usb/core.c | 3 +++
|
|
|
9ae3a8 |
1 file changed, 3 insertions(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/usb/core.c b/hw/usb/core.c
|
|
|
9ae3a8 |
index 31960c2..cf59a1a 100644
|
|
|
9ae3a8 |
--- a/hw/usb/core.c
|
|
|
9ae3a8 |
+++ b/hw/usb/core.c
|
|
|
9ae3a8 |
@@ -622,6 +622,7 @@ void usb_ep_reset(USBDevice *dev)
|
|
|
9ae3a8 |
dev->ep_ctl.nr = 0;
|
|
|
9ae3a8 |
dev->ep_ctl.type = USB_ENDPOINT_XFER_CONTROL;
|
|
|
9ae3a8 |
dev->ep_ctl.ifnum = 0;
|
|
|
9ae3a8 |
+ dev->ep_ctl.max_packet_size = 64;
|
|
|
9ae3a8 |
dev->ep_ctl.dev = dev;
|
|
|
9ae3a8 |
dev->ep_ctl.pipeline = false;
|
|
|
9ae3a8 |
for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) {
|
|
|
9ae3a8 |
@@ -633,6 +634,8 @@ void usb_ep_reset(USBDevice *dev)
|
|
|
9ae3a8 |
dev->ep_out[ep].type = USB_ENDPOINT_XFER_INVALID;
|
|
|
9ae3a8 |
dev->ep_in[ep].ifnum = USB_INTERFACE_INVALID;
|
|
|
9ae3a8 |
dev->ep_out[ep].ifnum = USB_INTERFACE_INVALID;
|
|
|
9ae3a8 |
+ dev->ep_in[ep].max_packet_size = 0;
|
|
|
9ae3a8 |
+ dev->ep_out[ep].max_packet_size = 0;
|
|
|
9ae3a8 |
dev->ep_in[ep].dev = dev;
|
|
|
9ae3a8 |
dev->ep_out[ep].dev = dev;
|
|
|
9ae3a8 |
dev->ep_in[ep].pipeline = false;
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|