All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lonnie Mendez <lmendez19@austin.rr.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [usb] patch in bLength for hub descriptor
Date: Fri, 05 May 2006 09:04:02 -0500	[thread overview]
Message-ID: <445B5B52.8040009@austin.rr.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 105 bytes --]

   lo list.  I forgot to update the bLength field in the hub 
descriptor.  The attached patch does this.

[-- Attachment #2: qemu-hub-blength.diff --]
[-- Type: text/plain, Size: 592 bytes --]

--- 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:

                 reply	other threads:[~2006-05-05 14:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=445B5B52.8040009@austin.rr.com \
    --to=lmendez19@austin.rr.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.