Commit 16f16d117c1eb99451e4c73c87546eef05c66790
Committed by
Greg Kroah-Hartman
1 parent
0a1ef3b5a7
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/usb/core/hcd.c
| ... | ... | @@ -130,7 +130,7 @@ |
| 130 | 130 | 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */ |
| 131 | 131 | 0x00, /* __u8 bDeviceSubClass; */ |
| 132 | 132 | 0x01, /* __u8 bDeviceProtocol; [ usb 2.0 single TT ]*/ |
| 133 | - 0x08, /* __u8 bMaxPacketSize0; 8 Bytes */ | |
| 133 | + 0x40, /* __u8 bMaxPacketSize0; 64 Bytes */ | |
| 134 | 134 | |
| 135 | 135 | 0x00, 0x00, /* __le16 idVendor; */ |
| 136 | 136 | 0x00, 0x00, /* __le16 idProduct; */ |
| ... | ... | @@ -153,7 +153,7 @@ |
| 153 | 153 | 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */ |
| 154 | 154 | 0x00, /* __u8 bDeviceSubClass; */ |
| 155 | 155 | 0x00, /* __u8 bDeviceProtocol; [ low/full speeds only ] */ |
| 156 | - 0x08, /* __u8 bMaxPacketSize0; 8 Bytes */ | |
| 156 | + 0x40, /* __u8 bMaxPacketSize0; 64 Bytes */ | |
| 157 | 157 | |
| 158 | 158 | 0x00, 0x00, /* __le16 idVendor; */ |
| 159 | 159 | 0x00, 0x00, /* __le16 idProduct; */ |