/* Returns 0 if success, error code on error  */
static int cdns3_req_ep0_set_sel(struct cdns3_device *priv_dev, struct usb_ctrlrequest *ctrl_req)
/* Returns 0 if success, error code on error  */
static int cdns3_req_ep0_set_sel(struct cdns3_device *priv_dev, struct usb_ctrlrequest *ctrl_req)
{
	if (priv_dev->gadget.state < USB_STATE_ADDRESS)
		return -EINVAL;
	if (ctrl_req->wLength != 6) {
		dev_err(priv_dev->dev, "Set SEL should be 6 bytes, got %d\n",
			ctrl_req->wLength);
		return -EINVAL;
	}
	cdns3_ep0_run_transfer(priv_dev, priv_dev->setup_dma, 6, 1, 0);
	return 0;
}