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

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tue, 31 Jul 2007, Oliver Neukum wrote:

> Am Dienstag 31 Juli 2007 schrieb A. Kalten:
> > On Tue, 31 Jul 2007 13:00:38 -0400
> > "A. Kalten" <[email protected]> wrote:
> > > 
> > > But after compiling 2.6.23-rc1 and undergoing the same steps
> > > with the usb modem as before, the problem remains.  The only
> > > difference is that the command "rmmod uhci-hcd" now reports
> > > the message "Killed" instead of "Device busy."
> > > 
> > 
> > For whatever it's worth.I should point out that this problem
> > only occurs when using the USB Abstract Control Model driver
> > for USB modems (i.e. the cdc_acm module).  When using my
> > USB scanner or USB printer I can unload the uhci-hcd module
> > without any problem using the equivalent procedure.
> 
> acm uses two interfaces for one driver which is pretty rare and explains
> that a refcounting problem is not seen with other drivers.

But shouldn't the same problem affect other people?

Here's a diagnotic patch to try under 2.6.22.  It should add some
interesting information to the kernel log, starting from the point
where the modem gets plugged in.

Alan Stern



Index: 2.6.22/drivers/usb/core/sysfs.c
===================================================================
--- 2.6.22.orig/drivers/usb/core/sysfs.c
+++ 2.6.22/drivers/usb/core/sysfs.c
@@ -530,6 +530,7 @@ int usb_create_sysfs_intf_files(struct u
 	struct usb_host_interface *alt = intf->cur_altsetting;
 	int retval;
 
+	dev_info(dev, "Create sysfs intf files\n");
 	retval = sysfs_create_group(&dev->kobj, &intf_attr_grp);
 	if (retval)
 		return retval;
@@ -546,6 +547,7 @@ void usb_remove_sysfs_intf_files(struct 
 {
 	struct device *dev = &intf->dev;
 
+	dev_info(dev, "Remove sysfs intf files\n");
 	usb_remove_intf_ep_files(intf);
 	device_remove_file(dev, &dev_attr_interface);
 	sysfs_remove_group(&dev->kobj, &intf_attr_grp);


-------------------------------------------------------------------------
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.