From: Cliff Cai Date: Mon, 21 Dec 2009 15:42:39 +0000 (-0500) Subject: USB: gadget: add INT support for Blackfin musb X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=767ffec15e25b34c7194e47f0ad1fbf63a568d44;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git USB: gadget: add INT support for Blackfin musb Signed-off-by: Cliff Cai Signed-off-by: Mike Frysinger Signed-off-by: Greg Kroah-Hartman --- 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))