[PATCH for 1.16 1/2] xfree86: Fallback to first platform device as primary

2014-09-06 Thread Hans de Goede
From: Thierry Reding tred...@nvidia.com When neither of the various bus implementations was able to find a primary bus and device, fallback to using the platform bus as primary bus and the first platform device as primary device. Signed-off-by: Thierry Reding tred...@nvidia.com Reviewed-by: Rob

[PATCH for 1.16 2/2] xfree86: Allow non-PCI devices as primary

2014-09-06 Thread Hans de Goede
From: Thierry Reding tred...@nvidia.com On platforms that don't support PCI or have no GPU attached to the PCI bus, there can still be a primary device on a non-PCI bus. Signed-off-by: Thierry Reding tred...@nvidia.com Reviewed-by: Rob Clark robdcl...@gmail.com Tested-by: Rob Clark

[PATCH for 1.16 0/2] xfree86: Allow non-PCI devices as primary

2014-09-06 Thread Hans de Goede
Hi All, When the support for automatically loading drivers for non-PCI devices landed in 1.16, these 2 patches were missed, and without these 2 patches the non-PCI device support does not work. This is a straight cherry pick from master, with one compile error due to 1.16 not having syspath