Re: Can't unload uhci_hcd module with 2.6.22 -- also oops

"A. Kalten" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
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/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.