/* This function handles the control transfer in status phase  */
static int ctrlreq_in_status_phase(struct usb_device *dev)
/* This function handles the control transfer in status phase  */
static int ctrlreq_in_status_phase(struct usb_device *dev)
{
	u16 csr;
	int result;
	csr = MUSB_CSR0_H_DIS_PING | MUSB_CSR0_H_REQPKT | MUSB_CSR0_H_STATUSPKT;
	writew(csr, &musbr->txcsr);
	result = wait_until_ep0_ready(dev, MUSB_CSR0_H_REQPKT);
	csr = readw(&musbr->txcsr);
	csr &= ~(MUSB_CSR0_RXPKTRDY | MUSB_CSR0_H_STATUSPKT);
	writew(csr, &musbr->txcsr);
	return result;
}