Hi,
Alan Stern:
> In turn, scsi_remove_host() calls class_device_unregister() and
> device_del(), and those calls should appear in the debugging log once you
> make the changes listed above. Somewhere in there is where the problem
> lies, and it may take a little work to track it down exactly.
>
Looks like it.
The relevant part of the log is:
Oct 4 11:16:44 linux kernel: usb-storage: -- dissociate_dev
Oct 4 11:16:44 linux kernel: CLASS: Unregistering class device. ID = '0:0:0:0'
Oct 4 11:16:44 linux kernel: kset_hotplug
Oct 4 11:16:44 linux kernel: fill_kobj_path: path = '/class/scsi_device/0:0:0:0'
Oct 4 11:16:44 linux kernel: class_hotplug - name = 0:0:0:0
Oct 4 11:16:44 linux kernel: kset_hotplug: /tmp/foo scsi_device HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove SEQNUM=144
Oct 4 11:16:44 linux kernel: kset_hotplug - call_usermodehelper returned -1
Oct 4 11:16:44 linux kernel: kobject 0:0:0:0: cleaning up
Oct 4 11:16:44 linux kernel: device class '0:0:0:0': release.
Oct 4 11:16:44 linux kernel: kobject <NULL>: cleaning up
Oct 4 11:16:44 linux kernel: CLASS: Unregistering class device. ID = 'host0'
Oct 4 11:16:44 linux kernel: kset_hotplug
Oct 4 11:16:44 linux kernel: fill_kobj_path: path = '/class/scsi_host/host0'
Oct 4 11:16:44 linux kernel: class_hotplug - name = host0
Oct 4 11:16:44 linux kernel: kset_hotplug: /tmp/foo scsi_host HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove SEQNUM=145
Oct 4 11:16:44 linux kernel: kset_hotplug - call_usermodehelper returned -1
Oct 4 11:16:44 linux kernel: kobject host0: cleaning up
Oct 4 11:16:44 linux kernel: device class 'host0': release.
Oct 4 11:16:44 linux kernel: usb-storage: -- sending exit command to thread
Unfortunately I don't know my way around the 2.6 device code yet,
but, well, no time like the present to learn. :-/
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
I'm not sure whether that's actually useful...
-- Larry Wall in <[EMAIL PROTECTED]>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel