/* Post the request to upper level. Don't use any pxa specific harware configuration capabilities  */
static void pxa27x_change_configuration(struct pxa_udc *udc, int config)
/* Post the request to upper level. Don't use any pxa specific harware configuration capabilities  */
static void pxa27x_change_configuration(struct pxa_udc *udc, int config)
{
	struct usb_ctrlrequest req ;
	dev_dbg(udc->dev, "config=%d\n", config);
	udc->config = config;
	udc->last_interface = 0;
	udc->last_alternate = 0;
	req.bRequestType = 0;
	req.bRequest = USB_REQ_SET_CONFIGURATION;
	req.wValue = config;
	req.wIndex = 0;
	req.wLength = 0;
	set_ep0state(udc, WAIT_ACK_SET_CONF_INTERF);
	udc->driver->setup(&udc->gadget, &req);
	ep_write_UDCCSR(&udc->pxa_ep[0], UDCCSR0_AREN);
}