[PATCH] drm: Send a hotplug uevent after performing a sysfs connection probe
Chris Wilson
chris at chris-wilson.co.uk
Thu Nov 19 05:51:37 PST 2015
If we probe the connector status from sysfs and find it has a new value,
we should synthesize the associated hotplug uevent. This keeps our
behaviour consistent and informs userspace of any override or change
imposed by the user.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/drm_sysfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
index 615b7e667320..382b82f871bc 100644
--- a/drivers/gpu/drm/drm_sysfs.c
+++ b/drivers/gpu/drm/drm_sysfs.c
@@ -208,6 +208,8 @@ static ssize_t status_store(struct device *device,
if (dev->mode_config.poll_enabled)
schedule_delayed_work(&dev->mode_config.output_poll_work,
0);
+
+ drm_kms_helper_hotplug_event(dev);
}
mutex_unlock(&dev->mode_config.mutex);
--
2.6.2
More information about the dri-devel
mailing list