/* Returns number of bytes in OUT fifos. Broken for IN fifos (-EOPNOTSUPP)  */
static int ep_count_bytes_remain(struct pxa_ep *ep)
/* Returns number of bytes in OUT fifos. Broken for IN fifos (-EOPNOTSUPP)  */
static int ep_count_bytes_remain(struct pxa_ep *ep)
{
	if (ep->dir_in)
		return -EOPNOTSUPP;
	return udc_ep_readl(ep, UDCBCR) & 0x3ff;
}