drm/radeon: reintroduce radeon_dp_work_func content
authorjsg <jsg@openbsd.org>
Fri, 16 Jun 2023 00:47:28 +0000 (00:47 +0000)
committerjsg <jsg@openbsd.org>
Fri, 16 Jun 2023 00:47:28 +0000 (00:47 +0000)
From Alex Deucher
8756863c7fe0f94b23a2e0f0a0d2a79d58e2a329 in linux-6.1.y/6.1.31
a34fc1bcd2c4d8b09dcfc0b95ac65bca1e579bd7 in mainline linux

sys/dev/pci/drm/radeon/radeon_irq_kms.c

index 8121903..5ff826f 100644 (file)
@@ -103,6 +103,16 @@ static void radeon_hotplug_work_func(struct work_struct *work)
 
 static void radeon_dp_work_func(struct work_struct *work)
 {
+       struct radeon_device *rdev = container_of(work, struct radeon_device,
+                                                 dp_work);
+       struct drm_device *dev = rdev->ddev;
+       struct drm_mode_config *mode_config = &dev->mode_config;
+       struct drm_connector *connector;
+
+       mutex_lock(&mode_config->mutex);
+       list_for_each_entry(connector, &mode_config->connector_list, head)
+               radeon_connector_hotplug(connector);
+       mutex_unlock(&mode_config->mutex);
 }
 
 /**