aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCliff Cai <cliff.cai@analog.com>2009-12-21 10:42:39 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 14:53:28 -0800
commit767ffec15e25b34c7194e47f0ad1fbf63a568d44 (patch)
tree62efb938a8f181eca34f63926089afec52ada134
parent3a8a3b1cee6c525661732b8bcf29ac63d42945ed (diff)
USB: gadget: add INT support for Blackfin musb
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>
-rw-r--r--drivers/usb/gadget/epautoconf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c
index 4671d5d7973..949ebe5e4c8 100644
--- a/drivers/usb/gadget/epautoconf.c
+++ b/drivers/usb/gadget/epautoconf.c
@@ -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))