hi...
guess i dint get accross
correctly...this is what i do...
- to start
with the driver is up,usb device is attached and
data transfer happens
- now i
remove the driver module(i have the device attached, i dont increment the MOD
COUNT in
the probe,so u are allowed to remove the driver
module even with the device attached)
- in the
module's cleanup routine, i unregister the usb device which causes the diconnect
routine to be
invoked(with the device still
attached)
- Now when i physically
detach the device, a null pointer exception happens. An attempt is probably
made
by usb core to invoke the 'disconnect' function
which is not there!!(since the driver module has been removed)
My point is,
since the device has been unregistered, detaching a device should not have any
effect right??
am i doing something obviously wrong in the above
steps.
do usb
drivers in general expect the device to be detached before the driver module is
removed?
i have a requirement where the user should be
allowed to remove the usb driver module with the usb device
attached,
and also cleanly:)
regards
avinash
"Because i live in a large tin can and i work in an egg carton Flirting is
the only joy i have:)"
|
- [linux-usb-devel] disconnect called after driver deregis... Avinash natarajan
- Re: [linux-usb-devel] disconnect called after drive... David Brownell
- Re: [linux-usb-devel] disconnect called after d... Avinash natarajan
- Re: [linux-usb-devel] disconnect called aft... David Brownell