Date: Thu, 8 Dec 2005 03:08:17 +0000 (UTC) From: Ian Dowse <iedowse@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb usbdi.c Message-ID: <200512080308.jB838H4n025411@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2005-12-08 03:08:17 UTC FreeBSD src repository Modified files: sys/dev/usb usbdi.c Log: Reorder the calling of the completion callback and the transfer "done" method so that for non-repeat operations we have completely finished with the transfer by the time the callback is invoked. This makes it possible to recycle a transfer from within the callback routine for the same transfer. Previously this almost worked, but with OHCI controllers calling the "done" method after the callback would zero out some important fields needed by the recycled transfer. Only some usb peripheral drivers such as ucom appear to rely on the ability to reuse a transfer from its callback. MFC after: 1 week Revision Changes Path 1.92 +14 -10 src/sys/dev/usb/usbdi.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512080308.jB838H4n025411>