From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fc0ve-0001Bn-CL for qemu-devel@nongnu.org; Fri, 05 May 2006 10:05:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fc0vc-0001B2-Os for qemu-devel@nongnu.org; Fri, 05 May 2006 10:05:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc0vc-0001Ax-I2 for qemu-devel@nongnu.org; Fri, 05 May 2006 10:05:08 -0400 Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fc0vm-0002XX-Si for qemu-devel@nongnu.org; Fri, 05 May 2006 10:05:19 -0400 Received: from [24.93.47.42] (helo=ms-smtp-03.texas.rr.com) by mx20.gnu.org with esmtp (Exim 4.52) id 1Fc0vM-0003Zq-CR for qemu-devel@nongnu.org; Fri, 05 May 2006 10:04:52 -0400 Received: from [192.168.0.11] (cpe-67-9-160-120.austin.res.rr.com [67.9.160.120]) by ms-smtp-03.texas.rr.com (8.13.4/8.13.4) with ESMTP id k45E4D5t024135 for ; Fri, 5 May 2006 09:04:13 -0500 (CDT) Message-ID: <445B5B52.8040009@austin.rr.com> Date: Fri, 05 May 2006 09:04:02 -0500 From: Lonnie Mendez MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090808020105030601010309" Subject: [Qemu-devel] [usb] patch in bLength for hub descriptor Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------090808020105030601010309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit lo list. I forgot to update the bLength field in the hub descriptor. The attached patch does this. --------------090808020105030601010309 Content-Type: text/plain; name="qemu-hub-blength.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qemu-hub-blength.diff" --- b/qemu/hw/usb-hub.c 2006-04-30 16:53:59.000000000 -0500 +++ a/qemu/hw/usb-hub.c 2006-05-05 08:47:52.000000000 -0500 @@ -152,7 +152,7 @@ static const uint8_t qemu_hub_hub_descriptor[] = { - 0x09, /* u8 bLength; */ + 0x00, /* u8 bLength; patched in later */ 0x29, /* u8 bDescriptorType; Hub-descriptor */ 0x00, /* u8 bNbrPorts; (patched later) */ 0x0a, /* u16 wHubCharacteristics; */ @@ -417,6 +417,7 @@ } ret = sizeof(qemu_hub_hub_descriptor) + var_hub_size; + data[0] = ret; break; } default: --------------090808020105030601010309--