projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a233631
)
EHCI: fix root hub device descriptor
author
Sergei Shtylyov
<
[email protected]
>
Sat, 27 Feb 2010 18:29:42 +0000
(21:29 +0300)
committer
Remy Bohmer
<
[email protected]
>
Thu, 8 Apr 2010 19:39:58 +0000
(21:39 +0200)
On little endian machines, EHCI root hub's USB revision is reported as 0.2 --
cpu_to_le16() was missed in the initializer for the 'bcdUSB' descriptor field.
The same should be done for the 'bcdDevice' field.
Signed-off-by: Sergei Shtylyov <
[email protected]
>
drivers/usb/host/ehci-hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-hcd.c
b/drivers/usb/host/ehci-hcd.c
index 9ebeb4f23dd2f4e2a31abd85a1751f30d522edc4..e48819f32e4aa5b2d97b8fbeec9af437ae382136 100644
(file)
--- a/
drivers/usb/host/ehci-hcd.c
+++ b/
drivers/usb/host/ehci-hcd.c
@@
-55,14
+55,14
@@
static struct descriptor {
{
0x12, /* bLength */
1, /* bDescriptorType: UDESC_DEVICE */
-
0x0002,
/* bcdUSB: v2.0 */
+
cpu_to_le16(0x0200),
/* bcdUSB: v2.0 */
9, /* bDeviceClass: UDCLASS_HUB */
0, /* bDeviceSubClass: UDSUBCLASS_HUB */
1, /* bDeviceProtocol: UDPROTO_HSHUBSTT */
64, /* bMaxPacketSize: 64 bytes */
0x0000, /* idVendor */
0x0000, /* idProduct */
-
0x0001,
/* bcdDevice */
+
cpu_to_le16(0x0100),
/* bcdDevice */
1, /* iManufacturer */
2, /* iProduct */
0, /* iSerialNumber */