On Tue, 31 Jul 2007 13:35:54 -0400 (EDT)
Alan Stern <[EMAIL PROTECTED]> wrote:

> 
> Hmmm.  So if you stop before the "modprobe cdc-acm" step there's no 
> trouble with "rmmod uhcd-hcd".  What about if you do load cdc-acm but 
> don't run the fax program?
> 

Here are some variations.

I plug in the external usb modem.

Then, the commands:

[/]# modprobe uhci-hcd
[/]# modprobe cdc-acm
[/]# mount -t usbfs none /proc/bus/usb

No fax program is invoked.  I just wait for a minute, then
I try to unload:

[/]# umount /proc/bus/usb
[/]# rmmod cdc_acm
[/]# rmmod uhci_hcd
Killed

The module is not unloaded and the kernel log has the oops error.

Now, I unplug the modem.

[/]# rmmod uhci_hcd
ERROR: Removing 'uhci_hcd': Device or resource busy

The module is still not unloaded.


Next, after rebooting, I do not plug in the modem.

Then:

[/]# modprobe uhci-hcd
[/]# modprobe cdc-acm
[/]# mount -t usbfs none /proc/bus/usb

No fax program is invoked.  I just wait for a minute, then
I try to unload:

[/]# umount /proc/bus/usb
[/]# rmmod cdc_acm
[/]# rmmod uhci_hcd

The module uhci-hcd is now successfully unloads without problem.

So, it seems that the cdc_acm module, after it detects the modem,
sets up the cause for the unloading failure.

Also, without first loading cdc-acm there is no problem:

[/]# modprobe uhci-hcd

Then:

[/]# rmmod uhci-hcd usbcore

The uhci-hcd module unloads without problem.

AK


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to