]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
wusb: fix bmRequestType for Abort RPipe request
authorAnderson Lizardo <anderson.lizardo@indt.org.br>
Wed, 17 Sep 2008 15:34:32 +0000 (16:34 +0100)
committerDavid Vrabel <dv02@dv02pc01.europe.root.pri>
Wed, 17 Sep 2008 15:54:32 +0000 (16:54 +0100)
WUSB 1.0 (Table 8-4) mentions that Abort RPipe requests must have bmRequestType
equal to 0x25, although current implementation sets bmRequestType to 0xa5. This
patch fixes this typo.

Signed-off-by: Anderson Lizardo <anderson.lizardo@indt.org.br>
Signed-off-by: David Vrabel <david.vrabel@csr.com>
drivers/usb/wusbcore/wa-rpipe.c

index bfe3752e7c9a8c03a5e251ab0fe159a367250b56..f18e4aae66e9c0cc8216e88057cba495699c5642 100644 (file)
@@ -548,7 +548,7 @@ void rpipe_ep_disable(struct wahc *wa, struct usb_host_endpoint *ep)
                result = usb_control_msg(
                        wa->usb_dev, usb_rcvctrlpipe(wa->usb_dev, 0),
                        USB_REQ_RPIPE_ABORT,
-                       USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_RPIPE,
+                       USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_RPIPE,
                        0, index, NULL, 0, 1000 /* FIXME: arbitrary */);
                if (result < 0 && result != -ENODEV /* dev is gone */)
                        d_printf(1, dev, "(wa %p rpipe %u): abort failed: %d\n",