Hi Thank for the reply, i am writing an HID driver , and i would like to know if there HID API i can use inorder to poll the interrupt endpoint. see below the function struct hid_report *report; struct list_head *report_list = &hid->report_enum[HID_FEATURE_REPORT].report_list; if (list_empty(report_list)) { return -ENODEV; } report = list_first_entry(report_list, struct hid_report, list); if (report->maxfield < 1) return -ENODEV; list_for_each_entry(report,report_list, list) { if (report->maxfield < 1) { continue; } switch (report->id) { case DRIVER_ALIVE: usbhid_submit_report(hid, report, USB_DIR_OUT); break; case GET_VERSION: usbhid_submit_report(hid, report, USB_DIR_OUT); //TODO In this stage i need to read the answer from Interrupt ENDPOINT break; } } } On Wed, May 12, 2010 at 10:49 PM, Greg KH <greg@xxxxxxxxx> wrote: > On Wed, May 12, 2010 at 07:00:29AM +0300, yoni dana wrote: >> Hi >> I am senind the question again? >> How can i get resopne to s Set/Get feture. >> In order to send report i use usbhid_submit_report, with USB_DIR_OUT >> I tried using the usbhid_submit_report, with USB_DIR_IN >> Didn't see any polling using a usb analyzer. >> i tried to use usbhid_wait_io but got >> WARNING: "usbhid_wait_io" undefined! > > That function is not exported for module use, it is for the usb hid core > only. > >> i am using kernel 2.6.31 on Ubuntu system. >> Can someone send me an example of how to recive a message via >> interupt endpoint > > See one of the many kernel drivers that use interrupt transfers > successfully :) > > Do you have a pointer to your code anywhere so that we can see what > you are trying to do? > > thanks, > > greg k-h > -- > 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 > -- 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