diff options
author | Cliff Cai <cliff.cai@analog.com> | 2009-12-21 16:42:39 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 23:53:28 +0100 |
commit | 767ffec15e25b34c7194e47f0ad1fbf63a568d44 (patch) | |
tree | 62efb938a8f181eca34f63926089afec52ada134 /drivers/usb/gadget/epautoconf.c | |
parent | USB: gadget: use ep5 for bulk-in and ep6 for bulk-out for Blackfin MUSB (diff) | |
download | linux-767ffec15e25b34c7194e47f0ad1fbf63a568d44.tar.xz linux-767ffec15e25b34c7194e47f0ad1fbf63a568d44.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/usb/gadget/epautoconf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index 4671d5d7973d..949ebe5e4c8d 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)) |