]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: bugfix driver/usb/host/ehci-hcd.c function ehci_submit_root
authorPrafulla Wadaskar <prafulla@marvell.com>
Fri, 17 Jul 2009 14:26:30 +0000 (19:56 +0530)
committerRemy Bohmer <linux@bohmer.net>
Thu, 23 Jul 2009 21:27:06 +0000 (23:27 +0200)
This change is cheked in Linux source and fix found to be in sync.
This patch is tested for USB host interface on Kirkwood based
Sheevaplug platform (ARM little endian board)

Risk: the impact of this patch is not validated on big endian board.
This need to be checked...

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
drivers/usb/host/ehci-hcd.c

index 423ea5d814f72db68a097c2f377ca8bf234fb0c4..324c308f4717a67b46db6a3ca5ed70cfc3471fcd 100644 (file)
@@ -550,9 +550,9 @@ ehci_submit_root(struct usb_device *dev, unsigned long pipe, void *buffer,
              req->requesttype, req->requesttype,
              le16_to_cpu(req->value), le16_to_cpu(req->index));
 
-       typeReq = req->request << 8 | req->requesttype;
+       typeReq = req->request | req->requesttype << 8;
 
-       switch (le16_to_cpu(typeReq)) {
+       switch (typeReq) {
        case DeviceRequest | USB_REQ_GET_DESCRIPTOR:
                switch (le16_to_cpu(req->value) >> 8) {
                case USB_DT_DEVICE: