On Fri, 10 Mar 2006 [EMAIL PROTECTED] wrote: > Hi all, > In usb_hcd structure there are two flags. uses_new_polling and > poll_rh. Can anyone suggest the use of these two flags ?
These flags are used to help support interrupt-driven root-hub events, as opposed to polling root hubs for events. If uses_new_polling isn't set then usbcore will poll for events just as it used to do in earlier kernels. If uses_new_polling is set, then usbcore will poll for events whenever poll_rh is set -- otherwise it will assume that the HCD uses interrupts to get root-hub events and it won't poll. > In usb_add_hcd > ( ), depending upon these two flags ( if they are set ) > usb_hcd_poll_rh_status( ) is called . In usb_remove_hcd( ), poll_rh flag > is cleared. But these two flags are not set anywhere in usb_add_hcd( ) > or in start entry point. So does this mean that for ohci these two flags > are not required to be set ? As far as I know, ohci-hcd has not been updated to use the new polling or interrupt-driven scheme. So neither flag should be set. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
