PCI modules problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 30, 2003 at 09:23:35PM -0400, Mark D. Studebaker  wrote:
> I figured out why i2c-voodoo3 and i2c-viapro weren't loading for me on some 
> machines.
> 
> The kernel PCI module init code
> (pci_module_init() in pci.h, then pci_register_driver() and 
> pci_dev_driver() in pci.c)
> allows only one driver registration per PCI device. If another driver gets 
> in there first we won't load.
> 
> This is a big problem for drivers on multi-purpose PCI devices. Especially 
> on our i2c bit-bangers for video chips, where we only use a couple of
> registers, and we have to coexist with video drivers.
> 
> Do we have any choice but to back out some of the pci_module_init cleanup?
> Perhaps we need to go through each PCI driver and assess whether the PCI
> device it attaches to is "single-function"?
> 
> Is there any easy way around this???
> arghhhhhhhhhh...

Nope, only one driver per pci device, sorry.  Any reason the video stuff
doesn't go into the pci driver for the video driver itself?  Isn't this
the way the video code in 2.5 works?

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux