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: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=767ffec15e25b34c7194e47f0ad1fbf63a568d44;p=openwrt%2Fstaging%2Fblogic.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))