> On Sat, 23 Sep 2006, e.fahle wrote: > > Hi, > > I wrote a driver for fullspeed device based on the code in usb_skeleton. > > Sending data to the device goes through 2 interrupt-endpoints. > > So my code uses the fill_int_urb() and submit_urb() and a callback for > > writing.. > > I allow a limited number of urbs to be submitted at the same time, just > > like in usb_skeleton. > > Everything works fine when I first boot my machine, then plug in the > > device and write the data to it. Urbs get submitted without an error and > > the callback receives the status for the urbs. > > > > But... > > when I boot (or reboot) my machine with the device already plugged in and > > then start to write to it, the usb_submit_urb() will return no error (0) > > , but my callback-function never gets called! > > > > Replugging the device immediatly solves the problem. > > > > I'm using Kernel 2.6.16 > > The node for the device is created by udev (does that matter?) > > > > Any ideas are welcome ... > > It sounds like your device doesn't respond to the transfers (that is, it > sends NAK or the data toggles are wrong) if it is plugged in while you > boot. > > Alan Stern Thanks for caring
After doing some more testing (on windows too) I'm almost convinced its a problem with the device-hardware. Device works fine when it is attached to a hub that shuts down the Vbus power on a reboot. If Vbus is not interrupted on a reboot, the device procduces the write failures. Glad its not my (I mean your skeleton-) code, it is my first hack on a linux-driver :-) Eberhard Fahle. ------------------------------------------------------------------------- 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 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
