Skip to contentSkip to conversation

usb-uhci rmmod fun

DISCUSSION Dave Jones 4 participants 7 messages Feb 25, 2004

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

Greg,
wtf is going on here ?

(00:52:08:root@mindphaser:davej)# lsmod | grep floppy
(00:52:39:root@mindphaser:davej)# modprobe usb-uhci
(00:52:48:root@mindphaser:davej)# lsmod | grep floppy
(00:53:02:root@mindphaser:davej)# rmmod uhci_hcd
(00:53:11:root@mindphaser:davej)# lsmod | grep floppy
floppy                 58260  0
(00:53:13:root@mindphaser:davej)#

Unloading the usb controller loads the floppy controller!?

Dave

#1 lore raw
Quoted 11 lines · Dave Jones

Greg,
wtf is going on here ?

(00:52:08:root@mindphaser:davej)# lsmod | grep floppy
(00:52:39:root@mindphaser:davej)# modprobe usb-uhci
(00:52:48:root@mindphaser:davej)# lsmod | grep floppy
(00:53:02:root@mindphaser:davej)# rmmod uhci_hcd
(00:53:11:root@mindphaser:davej)# lsmod | grep floppy
floppy                 58260  0
(00:53:13:root@mindphaser:davej)#
Quoted 1 line

Unloading the usb controller loads the floppy controller!?

Heh, I have no idea why that happens. I can't duplicate that here. What version of your hotplug scripts are you using?
What kernel version?
Do you have kmod enabled?

thanks,

greg k-h

author
#2 lore raw
Quoted 3 lines · Greg KH
Quoted 1 line

Unloading the usb controller loads the floppy controller!?

Heh, I have no idea why that happens. I can't duplicate that here. What version of your hotplug scripts are you using?

the ones from Fedora Core 2 test 1 (2004_01_05-1)

Quoted 1 line

What kernel version?

2.6.3-bk5

Quoted 1 line

Do you have kmod enabled?

yep.

Dave

#3 lore raw
In reply to Dave Jones
Quoted 11 lines · Dave Jones

Greg,
wtf is going on here ?

(00:52:08:root@mindphaser:davej)# lsmod | grep floppy
(00:52:39:root@mindphaser:davej)# modprobe usb-uhci
(00:52:48:root@mindphaser:davej)# lsmod | grep floppy
(00:53:02:root@mindphaser:davej)# rmmod uhci_hcd
(00:53:11:root@mindphaser:davej)# lsmod | grep floppy
floppy                 58260  0
(00:53:13:root@mindphaser:davej)#
Quoted 1 line

Unloading the usb controller loads the floppy controller!?

That can't be right. You're loading usb-uhci, then unloading uhci_hcd.

You should have only have one, depending on the version of the kernel.

JE

author
#4 lore raw
Quoted 8 lines · Johannes Erdfelt
Quoted 8 lines
(00:52:08:root@mindphaser:davej)# lsmod | grep floppy
(00:52:39:root@mindphaser:davej)# modprobe usb-uhci
(00:52:48:root@mindphaser:davej)# lsmod | grep floppy
(00:53:02:root@mindphaser:davej)# rmmod uhci_hcd
(00:53:11:root@mindphaser:davej)# lsmod | grep floppy
floppy                 58260  0
(00:53:13:root@mindphaser:davej)#
Quoted 5 lines
Quoted 1 line

Unloading the usb controller loads the floppy controller!?

That can't be right. You're loading usb-uhci, then unloading uhci_hcd.

You should have only have one, depending on the version of the kernel.

Err, yeah. ignore the modprobe part. uhci_hcd was already loaded during boot..

Dave

#5 lore raw
In reply to Dave Jones
Quoted 9 lines · On Wed, 25 Feb 2004 00:52:41 +0000 Dave Jones wrote:
(00:52:08:root@mindphaser:davej)# lsmod | grep floppy
(00:52:39:root@mindphaser:davej)# modprobe usb-uhci
(00:52:48:root@mindphaser:davej)# lsmod | grep floppy
(00:53:02:root@mindphaser:davej)# rmmod uhci_hcd
(00:53:11:root@mindphaser:davej)# lsmod | grep floppy
floppy                 58260  0
(00:53:13:root@mindphaser:davej)#

Unloading the usb controller loads the floppy controller!?

This thing seems to be triggered by updfstab (/etc/hotplug/usb.agent tries to run it during the remove handling).

author
#6 lore raw
Quoted 10 lines · Sergey Vlasov
Quoted 8 lines · On Wed, 25 Feb 2004 00:52:41 +0000 Dave Jones wrote:
(00:52:08:root@mindphaser:davej)# lsmod | grep floppy
(00:52:39:root@mindphaser:davej)# modprobe usb-uhci
(00:52:48:root@mindphaser:davej)# lsmod | grep floppy
(00:53:02:root@mindphaser:davej)# rmmod uhci_hcd
(00:53:11:root@mindphaser:davej)# lsmod | grep floppy
floppy                 58260  0
(00:53:13:root@mindphaser:davej)#
Quoted 4 lines
Quoted 1 line

Unloading the usb controller loads the floppy controller!?

This thing seems to be triggered by updfstab (/etc/hotplug/usb.agent tries to run it during the remove handling).

Bill Nottingham pointed out to me that on rmmod hotplug rescans all removable media, which seems a bit wacky, but that does seem to be the case.

Dave