On Sat, 2 Dec 2006, Adam Sulmicki wrote: > Adam Sulmicki wrote: > > > is there some way to run USB in polled mode? > > > > It seems I have lots of trouble getting the USB remote > > to work in IRQ driven mode. > > Oliver Neukum wrote: > > > What exactly do you mean by that? On a bus level USB is a polling > > protocol. > > This, unfortunately, means that I don't quite know what I'm doing :-( > > As far as the remote goes, I have observed that: > > * if I unplug it and plug it in again, it usually won't work. > > * reloading module helps. sometimes I need to reload usbhid, other times I > need to resort to use usbkbd instead. I think that usbkbd in its limited > functionality pretty reliably restarts remote. > > I have done "watch -d -n 1 cat /proc/interrupts" and was comparing it when > it works and when it does not work. I can see that when it works > interrupts are generated for uhci_hcd:usb1, but when it does not work, no > interrupts are generated, nor does anything shows up on the usbmon (cat > /sys/kernel/debug/usbmon/1t). Thus, my above post above polled mode. > > So the basic issue is how to fix it so that I do not have to reload > modules for the remote to work on re-plugging it. > > > For what it is worth, I have updated the web page below with whatever info > I could extract. > > http://www.missl.cs.umd.edu/~adam/cy/
The usbmon log on that web site don't show what happens when you unload the drivers. And the dmesg log doesn't say what you are doing at each stage. As far as I can tell from your usbmon logs, the drivers do exactly the same thing each time you load them. The only difference is that sometimes the device responds and other times it doesn't. Alan Stern ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel