USB: gadget: add INT support for Blackfin musb
authorCliff Cai <cliff.cai@analog.com>
Mon, 21 Dec 2009 15:42:39 +0000 (10:42 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:28 +0000 (14:53 -0800)
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/epautoconf.c

index 4671d5d7973d78ec7f6ec548cb3cd32a83044a7b..949ebe5e4c8d8011b8f453ab61b2a6480b6edee9 100644 (file)
@@ -284,6 +284,11 @@ struct usb_ep * __init usb_ep_autoconfig (
                                ep = find_ep (gadget, "ep5in");
                        else
                                ep = find_ep (gadget, "ep6out");
+               } else if (USB_ENDPOINT_XFER_INT == type) {
+                       if (USB_DIR_IN & desc->bEndpointAddress)
+                               ep = find_ep(gadget, "ep1in");
+                       else
+                               ep = find_ep(gadget, "ep2out");
                } else
                        ep = NULL;
                if (ep && ep_matches (gadget, ep, desc))