Re: Sharing a pci device

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

 



On Fri, May 28, 2004 at 05:58:57PM -0500, Perry Gilfillan wrote:
> Should I make the i2c-voodoo3 module so it can cope with any of these 
> cases at run time, or should I use preprocessor conditionals to handle 
> the first and fourth case, and just do the runtime tests in i2c-voodoo3 
> if the tdfxfb driver is a module and it's presence can't be known when 
> i2c-voodoo3 is loaded?
> 
> Is it true that each physical pci device can have just one driver 
> attached to it?

Yes, that is the safest.

How about making one module/driver that has the probe/remove functions
for the voodoo3 device, and have the other three modules register with
that to get access to the device?  That's the correct way to solve this
issue.

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux