|
Hans de Goede |
393f81 |
From c9917c910cf59e2407bbf51770724c5ec17d9cd1 Mon Sep 17 00:00:00 2001
|
|
Hans de Goede |
c8dfc6 |
From: Hans de Goede <hdegoede@redhat.com>
|
|
Hans de Goede |
c8dfc6 |
Date: Thu, 6 Sep 2012 20:52:36 +0200
|
|
Hans de Goede |
393f81 |
Subject: [PATCH 363/365] usb-redir: Store max_packet_size in endp_data
|
|
Hans de Goede |
c8dfc6 |
|
|
Hans de Goede |
c8dfc6 |
So that we've a place to migrate it to / from to allow restoring it after
|
|
Hans de Goede |
c8dfc6 |
migration.
|
|
Hans de Goede |
c8dfc6 |
|
|
Hans de Goede |
c8dfc6 |
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
Hans de Goede |
c8dfc6 |
---
|
|
Hans de Goede |
c8dfc6 |
hw/usb/redirect.c | 4 +++-
|
|
Hans de Goede |
c8dfc6 |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
Hans de Goede |
c8dfc6 |
|
|
Hans de Goede |
c8dfc6 |
diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
|
|
Hans de Goede |
c8dfc6 |
index 1c8edd3..d8568ae 100644
|
|
Hans de Goede |
c8dfc6 |
--- a/hw/usb/redirect.c
|
|
Hans de Goede |
c8dfc6 |
+++ b/hw/usb/redirect.c
|
|
Hans de Goede |
c8dfc6 |
@@ -57,6 +57,7 @@ struct endp_data {
|
|
Hans de Goede |
c8dfc6 |
uint8_t type;
|
|
Hans de Goede |
c8dfc6 |
uint8_t interval;
|
|
Hans de Goede |
c8dfc6 |
uint8_t interface; /* bInterfaceNumber this ep belongs to */
|
|
Hans de Goede |
c8dfc6 |
+ uint16_t max_packet_size; /* In bytes, not wMaxPacketSize format !! */
|
|
Hans de Goede |
c8dfc6 |
uint8_t iso_started;
|
|
Hans de Goede |
c8dfc6 |
uint8_t iso_error; /* For reporting iso errors to the HC */
|
|
Hans de Goede |
c8dfc6 |
uint8_t interrupt_started;
|
|
Hans de Goede |
c8dfc6 |
@@ -1305,7 +1306,8 @@ static void usbredir_ep_info(void *priv,
|
|
Hans de Goede |
c8dfc6 |
usb_ep->ifnum = dev->endpoint[i].interface;
|
|
Hans de Goede |
c8dfc6 |
if (usbredirparser_peer_has_cap(dev->parser,
|
|
Hans de Goede |
c8dfc6 |
usb_redir_cap_ep_info_max_packet_size)) {
|
|
Hans de Goede |
c8dfc6 |
- usb_ep->max_packet_size = ep_info->max_packet_size[i];
|
|
Hans de Goede |
c8dfc6 |
+ dev->endpoint[i].max_packet_size =
|
|
Hans de Goede |
c8dfc6 |
+ usb_ep->max_packet_size = ep_info->max_packet_size[i];
|
|
Hans de Goede |
c8dfc6 |
}
|
|
Hans de Goede |
c8dfc6 |
if (ep_info->type[i] == usb_redir_type_bulk) {
|
|
Hans de Goede |
c8dfc6 |
usb_ep->pipeline = true;
|
|
Hans de Goede |
c8dfc6 |
--
|
|
Hans de Goede |
c8dfc6 |
1.7.12
|
|
Hans de Goede |
c8dfc6 |
|