Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185263
b: refs/heads/master
c: 3a8a3b1
h: refs/heads/master
i:
  185261: 14e4bb2
  185259: 483ccd0
  185255: b3f689d
  185247: 04dee41
v: v3
  • Loading branch information
Bryan Wu authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent c683b01 commit fc1aadb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca0e9485afb8db3abf58235abf6afded2df0db17
refs/heads/master: 3a8a3b1cee6c525661732b8bcf29ac63d42945ed
14 changes: 14 additions & 0 deletions trunk/drivers/usb/gadget/epautoconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,20 @@ struct usb_ep * __init usb_ep_autoconfig (
ep = find_ep (gadget, "ep1-bulk");
if (ep && ep_matches (gadget, ep, desc))
return ep;

#ifdef CONFIG_BLACKFIN
} else if (gadget_is_musbhsfc(gadget) || gadget_is_musbhdrc(gadget)) {
if ((USB_ENDPOINT_XFER_BULK == type) ||
(USB_ENDPOINT_XFER_ISOC == type)) {
if (USB_DIR_IN & desc->bEndpointAddress)
ep = find_ep (gadget, "ep5in");
else
ep = find_ep (gadget, "ep6out");
} else
ep = NULL;
if (ep && ep_matches (gadget, ep, desc))
return ep;
#endif
}

/* Second, look at endpoints until an unclaimed one looks usable */
Expand Down

0 comments on commit fc1aadb

Please sign in to comment.