On Thu, 8 Oct 2009, aditya uttam wrote: > > And what does the code look like for the whole driver? > > Here I am pasting the callback and related code. > > Please find the code execution path in which usb_submit_urb() is failing. > > common_callback()->common_check_for_fail_status()->usb_stor_clear_halt()->usb_stor_control_msg()->my_usb_stor_msg_common()->usb_submit_urb(). Unforunately I can't tell what's wrong just by reading your code. You may need to add some printk statements into the usbcore kernel code to find out the reason for that error. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html