[PATCH] drm: Send a hotplug uevent after performing a sysfs connection probe

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

 



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@xxxxxxxxxxxxxxxxxx>
---
 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

_______________________________________________
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