diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2005-10-24 15:41:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 19:47:51 -0400 |
commit | 16f16d117c1eb99451e4c73c87546eef05c66790 (patch) | |
tree | 9f08a567e25f97a8d7ee0715657067013fb3467c | |
parent | 0a1ef3b5a765a6f20e7b8caf295aad3276243966 (diff) |
[PATCH] USB: Fix maxpacket length for ep0 on root hubs
This patch (as591) fixes a rather innocuous bug that has been around for
quite a long time: Virtual root hubs should have a maxpacket length of
64 for endpoint 0. I didn't realize it was wrong until I started
looking through the endpoint attribute files.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/core/hcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 61ef9943757e..6c7ca5b08cd6 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c | |||
@@ -130,7 +130,7 @@ static const u8 usb2_rh_dev_descriptor [18] = { | |||
130 | 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */ | 130 | 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */ |
131 | 0x00, /* __u8 bDeviceSubClass; */ | 131 | 0x00, /* __u8 bDeviceSubClass; */ |
132 | 0x01, /* __u8 bDeviceProtocol; [ usb 2.0 single TT ]*/ | 132 | 0x01, /* __u8 bDeviceProtocol; [ usb 2.0 single TT ]*/ |
133 | 0x08, /* __u8 bMaxPacketSize0; 8 Bytes */ | 133 | 0x40, /* __u8 bMaxPacketSize0; 64 Bytes */ |
134 | 134 | ||
135 | 0x00, 0x00, /* __le16 idVendor; */ | 135 | 0x00, 0x00, /* __le16 idVendor; */ |
136 | 0x00, 0x00, /* __le16 idProduct; */ | 136 | 0x00, 0x00, /* __le16 idProduct; */ |
@@ -153,7 +153,7 @@ static const u8 usb11_rh_dev_descriptor [18] = { | |||
153 | 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */ | 153 | 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */ |
154 | 0x00, /* __u8 bDeviceSubClass; */ | 154 | 0x00, /* __u8 bDeviceSubClass; */ |
155 | 0x00, /* __u8 bDeviceProtocol; [ low/full speeds only ] */ | 155 | 0x00, /* __u8 bDeviceProtocol; [ low/full speeds only ] */ |
156 | 0x08, /* __u8 bMaxPacketSize0; 8 Bytes */ | 156 | 0x40, /* __u8 bMaxPacketSize0; 64 Bytes */ |
157 | 157 | ||
158 | 0x00, 0x00, /* __le16 idVendor; */ | 158 | 0x00, 0x00, /* __le16 idVendor; */ |
159 | 0x00, 0x00, /* __le16 idProduct; */ | 159 | 0x00, 0x00, /* __le16 idProduct; */ |