From: jsg Date: Fri, 16 Jun 2023 00:47:28 +0000 (+0000) Subject: drm/radeon: reintroduce radeon_dp_work_func content X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c5f83962d48e3f2056dd2f3d34c114afa0b97185;p=openbsd drm/radeon: reintroduce radeon_dp_work_func content From Alex Deucher 8756863c7fe0f94b23a2e0f0a0d2a79d58e2a329 in linux-6.1.y/6.1.31 a34fc1bcd2c4d8b09dcfc0b95ac65bca1e579bd7 in mainline linux --- diff --git a/sys/dev/pci/drm/radeon/radeon_irq_kms.c b/sys/dev/pci/drm/radeon/radeon_irq_kms.c index 8121903fa95..5ff826f021c 100644 --- a/sys/dev/pci/drm/radeon/radeon_irq_kms.c +++ b/sys/dev/pci/drm/radeon/radeon_irq_kms.c @@ -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); } /**