On Mon, Jul 28, 2003 at 01:08:40AM +0200, Nemosoft Unv. wrote: > Hello, > > Attached are two patches, one for 2.4.21 and 2.5.75 for the PWC driver. I > assume the 2.5.75 patch will go into 2.6.0-test* without problems (I hope > this driver can make it into the kernel before the 'real' 2.6.0).
Applied to 2.4 and 2.5 thanks. > Second... I've been thinking long and hard about the problem of properly > deregistering the video device when the cam gets unplugged while it is in > use. Various schemes failed; immediately deregistering while in the > disconnect routine causes crashes because the videodev layer sets some > pointer to null but still uses it later. A deregister in close() causes > hangs because of locked mutexes... > > My current implemententation is to set an errorflag in the disconnect > routine, then wait there (using schedule()) until close() is being called > (I assume the application will immediately close the device when it gets a > serious error). So far it doesn't crash :-) The latest v4l core changes with the conversion to the driver model will probably answer this question for you. See the patches sent to lkml for this. thanks, greg k-h ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
