On Wed, 24 Jan 2007 [EMAIL PROTECTED] wrote: > > Dear Alan, > thank you for your valuable reply! > Actually I do have the Book "Linux Device Drivers 3 ed" but it was not easy > to find your mentioned > example. I think i finally found it on page 151. There i used something linke > wake_up and wait_for_event_interuuptible and wait queues. > My code is much more usable and i did not have to reboot once! this is great. > However its not yet perfect. there are some issues left: > * My read function is able to wait until real data arrives, but once a fixed > and limited amount of > data arrives, my callback function is repeatedly called thus producing lots > of data althought there is'nt any more > *I suspect that the data I actually get is not correct. could it be the > reason, that i receive data from an USB2.0 512 byte endpoint to a usb 1.0 > host controller(i am not at home and just have my old laptop with me) > For clarification there is the latest driver source code available again at > http://194.208.18.155/driver.tar.gz
Sorry, I don't have time to look at your driver source code. However, your callback function will be invoked exactly once for every URB which is successfully submitted. If it is called many times, it must be because you have submitted many URBs. Try adding lots of "printk(KERN_DEBUG ...)" statements to your driver and see what you can learn. 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