Re: Unloading USB driver while device is attached.

From: Ian Dowse <iedowse_at_maths.tcd.ie>
Date: Mon, 19 Jul 2004 19:50:48 +0100
In message <20040719175241.GJ57678_at_darkness.comp.waw.pl>, Pawel Jakub Dawidek w
rites:
>So, as I see it, device should be totally detached before unload and
>I susspect that something is missing in USB layer, not in all drivers.
>That's why when I load a driver again, USB thinks it is somehow connected
>to existing device, but it isn't.

I'm not sure if it will help in this particular case, but I have a
lot of local cleanups and improvements in the USB code. There's a
large patch at

	http://people.freebsd.org/~iedowse/usb.diff

but unfortunately I haven't had time to work on this lately (and
there are all the problems of divergence from NetBSD etc. if bits
of this get committed). The (small) uhub.c changes look like they
might possibly help in your case. With the full patch I was able
to `kldunload usb' without crashes a while ago, but there were still
memory leaks.

Ian
Received on Mon Jul 19 2004 - 16:50:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:02 UTC