Re: Multiple parents in device driver model and Common Display Framework (CDF)

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

 



On Tuesday 12 February 2013, Greg KH wrote:
> On Tue, Feb 12, 2013 at 11:20:04PM +0100, Marcus Lorentzon wrote:
> > Den 12 feb 2013 23:02 skrev "Greg KH" <gregkh@xxxxxxxxxxxxxxxxxxx>:
> > >
> > > On Tue, Feb 12, 2013 at 04:04:53PM +0100, Marcus Lorentzon wrote:
> > > > 3) Daniel V hinted that multiple parents (or multiple busses) is
> > > > something that has been discussed as a limitation of device driver
> > > > model before. And that maybe now was the time to fix that or at
> > > > least sort out how to handle it.
> > >
> > > No, it's the other way around, we have discussed ways about having
> > > multiple drivers control a single device at the same time.  The
> > > "multiple parents" issue has come up a number of times with the power
> > > management people, but they solved this by keeping a separate tree of
> > > how to properly control and walk things to handle power domains and the
> > > like.
> > >
> > Thanks,
> > does this mean there are no other devices in the kernel that sit on multiple
> > busses that can be use as inspiration?
> 
> Lots of devices do this, but they all have an individual 'struct device'
> for the part that sits on each bus, with a single driver controlling
> both of them

A typical example of this is an ethernet device where the MAC and PHY
are on different buses. While we have some drivers that just bind to
both devices, another solution is to have separate device drivers
for each portion, and an interface to communicate between them.

It depends a bit on what the two bus interfaces are used for.

	Arnd
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux