Commit 767ffec1 authored by Cliff Cai's avatar Cliff Cai Committed by Greg Kroah-Hartman

USB: gadget: add INT support for Blackfin musb

Signed-off-by: default avatarCliff Cai <cliff.cai@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3a8a3b1c
...@@ -284,6 +284,11 @@ struct usb_ep * __init usb_ep_autoconfig ( ...@@ -284,6 +284,11 @@ struct usb_ep * __init usb_ep_autoconfig (
ep = find_ep (gadget, "ep5in"); ep = find_ep (gadget, "ep5in");
else else
ep = find_ep (gadget, "ep6out"); 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 } else
ep = NULL; ep = NULL;
if (ep && ep_matches (gadget, ep, desc)) if (ep && ep_matches (gadget, ep, desc))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment