|
Lines 778-783
usbd_setup_pipe(usbd_device_handle dev,
Link Here
|
| 778 |
free(p, M_USB); |
778 |
free(p, M_USB); |
| 779 |
return (err); |
779 |
return (err); |
| 780 |
} |
780 |
} |
|
|
781 |
#if 0 |
| 781 |
/* Clear any stall and make sure DATA0 toggle will be used next. */ |
782 |
/* Clear any stall and make sure DATA0 toggle will be used next. */ |
| 782 |
if (UE_GET_ADDR(ep->edesc->bEndpointAddress) != USB_CONTROL_ENDPOINT) { |
783 |
if (UE_GET_ADDR(ep->edesc->bEndpointAddress) != USB_CONTROL_ENDPOINT) { |
| 783 |
err = usbd_clear_endpoint_stall(p); |
784 |
err = usbd_clear_endpoint_stall(p); |
|
Lines 792-797
usbd_setup_pipe(usbd_device_handle dev,
Link Here
|
| 792 |
return (err); |
793 |
return (err); |
| 793 |
} |
794 |
} |
| 794 |
} |
795 |
} |
|
|
796 |
#endif |
| 795 |
*pipe = p; |
797 |
*pipe = p; |
| 796 |
return (USBD_NORMAL_COMPLETION); |
798 |
return (USBD_NORMAL_COMPLETION); |
| 797 |
} |
799 |
} |