|
@@ -86,24 +86,8 @@ struct usb_ep *usb_ep_autoconfig_ss(
|
|
|
/* First, apply chip-specific "best usage" knowledge.
|
|
|
* This might make a good usb_gadget_ops hook ...
|
|
|
*/
|
|
|
- if (gadget_is_goku(gadget)) {
|
|
|
- if (USB_ENDPOINT_XFER_INT == type) {
|
|
|
- /* single buffering is enough */
|
|
|
- ep = gadget_find_ep_by_name(gadget, "ep3-bulk");
|
|
|
- if (ep && usb_gadget_ep_match_desc(gadget,
|
|
|
- ep, desc, ep_comp))
|
|
|
- goto found_ep;
|
|
|
- } else if (USB_ENDPOINT_XFER_BULK == type
|
|
|
- && (USB_DIR_IN & desc->bEndpointAddress)) {
|
|
|
- /* DMA may be available */
|
|
|
- ep = gadget_find_ep_by_name(gadget, "ep2-bulk");
|
|
|
- if (ep && usb_gadget_ep_match_desc(gadget,
|
|
|
- ep, desc, ep_comp))
|
|
|
- goto found_ep;
|
|
|
- }
|
|
|
-
|
|
|
#ifdef CONFIG_BLACKFIN
|
|
|
- } else if (gadget_is_musbhdrc(gadget)) {
|
|
|
+ if (gadget_is_musbhdrc(gadget)) {
|
|
|
if ((USB_ENDPOINT_XFER_BULK == type) ||
|
|
|
(USB_ENDPOINT_XFER_ISOC == type)) {
|
|
|
if (USB_DIR_IN & desc->bEndpointAddress)
|
|
@@ -119,8 +103,8 @@ struct usb_ep *usb_ep_autoconfig_ss(
|
|
|
ep = NULL;
|
|
|
if (ep && usb_gadget_ep_match_desc(gadget, ep, desc, ep_comp))
|
|
|
goto found_ep;
|
|
|
-#endif
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
/* Second, look at endpoints until an unclaimed one looks usable */
|
|
|
list_for_each_entry (ep, &gadget->ep_list, ep_list) {
|