Wang YC

usb_control_msg return -EPIPE

Discussion created by Wang YC on Apr 25, 2013

hi all,

     does anyone know why the usb_control_msg always return -EPIPE ??

     here is my usage -

          status = usb_control_msg(usbdev, usb_sndctrlpipe(usbdev,

               0), HID_REQ_SET_REPORT,

               USB_DIR_OUT | USB_RECIP_INTERFACE | USB_TYPE_VENDOR,

               ((HID_OUTPUT_REPORT + 1) << 8), interface->desc.bInterfaceNumber,

               data->data, data->data_len, 250);

     the status value always equal -EPIPE.

 

     any information very appreciate !!!!

 

     regards

Outcomes