Skip to contentSkip to conversation

pci_disable_device warning

DISCUSSION Lee Revell 2 participants 2 messages Nov 17, 2004 – Nov 18, 2004

lore
Share & tools
lore

Lee Revell

author
#0 lore raw

I get this warning when removing ALSA modules. I believe the warning is going away, so maybe we should address the issue now. Is this something that could be done by the ALSA middle layer?

Nov 16 23:32:09 krustophenia kernel: EMU10K1_Audigy 0000:00:14.0: Device

was removed without properly calling pci_disable_device(). This may need fixing.

I tried adding a call to pci_disable_device and the warning persisted, maybe I did not add it in the right place.

Lee

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

#1 lore raw

At Wed, 17 Nov 2004 13:40:48 -0500,

Quoted 4 lines · Lee Revell

I get this warning when removing ALSA modules. I believe the warning is going away, so maybe we should address the issue now. Is this something that could be done by the ALSA middle layer?

Possible, but I think better in each driver code.

Quoted 6 lines
Nov 16 23:32:09 krustophenia kernel: EMU10K1_Audigy 0000:00:14.0: Device

was removed without properly calling pci_disable_device(). This may need fixing.

I tried adding a call to pci_disable_device and the warning persisted, maybe I did not add it in the right place.

Does the patch below fix?

Takashi

Index: alsa-kernel/pci/emu10k1/emu10k1_main.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/emu10k1/emu10k1_main.c,v retrieving revision 1.38

pci/emu10k1/emu10k1_main.c +1 -0
diff -u -r1.38 emu10k1_main.c
@@ -561,6 +561,7 @@
 		free_irq(emu->irq, (void *)emu);
 	if (emu->port)
 		pci_release_regions(emu->pci);
+	pci_disable_device(emu->pci);
 	kfree(emu);
 	return 0;
 }