Date: Thu, 29 Mar 2007 08:38:57 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: Markus Henschel <m.henschel@bally-wulff.de> Cc: freebsd-usb@freebsd.org Subject: Re: usb/110855: ugen: interrupt in msgs are truncated when buffer is full Message-ID: <200703290838.57458.hselasky@c2i.net> In-Reply-To: <460AB387.20304@bally-wulff.de> References: <200703271940.l2RJe90x058558@freefall.freebsd.org> <200703281832.22527.hselasky@c2i.net> <460AB387.20304@bally-wulff.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 28 March 2007 20:27, Markus Henschel wrote: > Hans Petter Selasky schrieb: > > <ZAP> > > > > Can you revert the changes you made to "umass.c" ? > > > > You can do this for example by copying "sys/dev/usb/umass.c" from the SVN > > repo to where you have your kernel sources. > > > > Then edit "sys/dev/usb/umass.c" again. > > > > Lookup the function "umass_t_bbb_status_callback()". > > > > Right below the label "tr_transferred" you add like this: > > > > tr_transferred: > > /* don't retry the status, but do a full reset if > > * there is something wrong with the CSW: > > */ > > sc->sc_status_try = 1; > > > > Compile a new kernel (or if you are smart, leave "device umass" out of > > the kernel config file and just recompile the "umass" module: > > sys/modules/umass) > > > > What happens now? > > > > --HPS > > Mmmm, seems like I must have messed something up before. So I reapplied > the changes to a clean system. The first stick says now. The !!!! mark > the point where the hanging occurs. Does it hang as long as before ? If you try to increase the delay again, does that help? Edit sys/dev/usb/umass.c Then lookup: usbd_delay_ms(uaa->device, 1000); Change it into: usbd_delay_ms(uaa->device, 5000); > > Thank you for your time. Let me know if you want me to try other > changes. May be it would be easier if you could create a branch in svn > with the changes needed? Maybe. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703290838.57458.hselasky>