Re: PCI devices w/ multiple drivers at once? (sb_edac vs i2c-imc)

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

 



On Wed, Aug 14, 2013 at 3:45 PM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
> I'm working on a driver for the Sandy Bridge iMC SMBUS controller.  It
> (mostly) lives on pci device 15, function 0.  So my driver registers
> as an ordinary PCI driver for that device (8086.3ca8).
>
> The problem is that sb_edac also registers for 8086.3ca8.  This means
> that the drivers conflict.  The sb_edac driver is actually driving
> functionality that's split between eleven (!) different pci devices,
> none of which overlaps the stuff I'm driving.
>
> What's the Right Way (tm) to handle this?  Should I just modify
> sb_edac to pick a different one of the 11 devices to probe?  Is there
> some standard way to handle this in the PCI code?

Nope, there's no standard way to do this.

The single driver that claims a device is presumed to own all the
device's resources, including its config space, BARs, interrupts, etc.
 If two drivers need access to the same device, they need to
coordinate between themselves somehow.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux