[PATCH 16/36] xf86: load modesetting driver on Linux hotplug

Dave Airlie airlied at gmail.com
Mon Jul 2 03:13:09 PDT 2012


From: Dave Airlie <airlied at redhat.com>

This driver is currently really the only choice for a hotplug
at the moment, we can refine this in the future to try and
pick the driver names.

We have to reload this as it can get unloaded it not used
in the original probe.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 hw/xfree86/os-support/linux/lnx_platform.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/xfree86/os-support/linux/lnx_platform.c b/hw/xfree86/os-support/linux/lnx_platform.c
index 76f5583..56887a1 100644
--- a/hw/xfree86/os-support/linux/lnx_platform.c
+++ b/hw/xfree86/os-support/linux/lnx_platform.c
@@ -138,6 +138,9 @@ void NewGPUDeviceRequest(struct OdevAttributes *attribs)
     if (old_num == xf86_num_platform_devices)
         return;
 
+    /* force load the modesetting driver for now */
+    xf86LoadOneModule("modesetting", NULL);
+
     ret = xf86platformAddDevice(xf86_num_platform_devices-1);
     if (ret == -1)
         xf86_remove_platform_device(xf86_num_platform_devices-1);
-- 
1.7.10.2



More information about the xorg-devel mailing list