On Fri, Aug 07, 2015 at 10:17:36AM -0400, Alex Deucher wrote:
On Fri, Aug 7, 2015 at 6:25 AM, Mark Brown broonie@kernel.org wrote:
Looking at the code I'm not seeing too much bus specific except for the above which looks like the sort of device we usually represent as a MFD (with the MFD providing resource distribution and arbitration between various component devices which fit into the subsystem). Why code a new bus for this device?
Adding Felix who did worked on the design for this. The idea is that there are hw blocks on the GPU that are controlled by drivers that are part of other subsystems. Those drivers need access to resources (e.g., the MMIO aperture) controlled by the GPU driver. I guess this is a MFD of sorts. If this is not the preferred way to handle this type of device, what is? Can you point me to another driver that handles this differently?
Yeah, this sounds like a MFD - see drivers/mfd and take a look at how the drivers there deal with this.