/* Sends a setup request RESET ENDPOINT Used after a STALL received during a scsi command.  */
static void uhi_msc_reset_endpoint(usb_ep_t endp, uhd_callback_setup_end_t callback)
/* Sends a setup request RESET ENDPOINT Used after a STALL received during a scsi command.  */
static void uhi_msc_reset_endpoint(usb_ep_t endp, uhd_callback_setup_end_t callback)
{
	usb_setup_req_t req;
	req.bmRequestType = USB_REQ_RECIP_ENDPOINT
			| USB_REQ_TYPE_STANDARD | USB_REQ_DIR_OUT;
	req.bRequest = USB_REQ_CLEAR_FEATURE;
	req.wValue = USB_EP_FEATURE_HALT;
	req.wIndex = endp;
	req.wLength = 0;
	if (!uhd_setup_request(uhi_msc_dev_sel->dev->address,
			&req, NULL, 0, NULL, callback)) {
		callback(uhi_msc_dev_sel->dev->address,UHD_TRANS_DISCONNECT,0);
	}
}