/* Unqueue the request from the endpoint's queue. If there are no more requests on the endpoint, and if it's not the control endpoint, interrupts are disabled on the endpoint.  */
static void ep_del_request(struct pxa_ep *ep, struct pxa27x_request *req)
/* Unqueue the request from the endpoint's queue. If there are no more requests on the endpoint, and if it's not the control endpoint, interrupts are disabled on the endpoint.  */
static void ep_del_request(struct pxa_ep *ep, struct pxa27x_request *req)
{
	if (unlikely(!req))
		return;
	ep_vdbg(ep, "req:%p, lg=%d, udccsr=0x%03x\n", req,
		req->req.length, udc_ep_readl(ep, UDCCSR));
	list_del_init(&req->queue);
	req->in_use = 0;
	if (!is_ep0(ep) && list_empty(&ep->queue))
		pio_irq_disable(ep);
}