aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-02-23 18:23:56 -0500
committerAlex Deucher <alexander.deucher@amd.com>2015-03-19 12:26:45 -0400
commitde6284aa0162e6814e4d5f17a0177e0e5aee1ce5 (patch)
tree3b11da52f793919a0b207af40db14228c62a427d /drivers/gpu/drm/radeon
parent87f5942d1f7bc320a0ec70ac4a8a3396024c7091 (diff)
radeon: introduce a dp_work handler
This is to be called on short HPD irqs, just introduce the basic infrastructure for it. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h1
-rw-r--r--drivers/gpu/drm/radeon/radeon_irq_kms.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 26a339b1b2cd..1506332d6f22 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -2412,6 +2412,7 @@ struct radeon_device {
2412 struct radeon_rlc rlc; 2412 struct radeon_rlc rlc;
2413 struct radeon_mec mec; 2413 struct radeon_mec mec;
2414 struct work_struct hotplug_work; 2414 struct work_struct hotplug_work;
2415 struct work_struct dp_work;
2415 struct work_struct audio_work; 2416 struct work_struct audio_work;
2416 int num_crtc; /* number of crtcs */ 2417 int num_crtc; /* number of crtcs */
2417 struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */ 2418 struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */
diff --git a/drivers/gpu/drm/radeon/radeon_irq_kms.c b/drivers/gpu/drm/radeon/radeon_irq_kms.c
index 00fc59762e0d..e82ae819fc10 100644
--- a/drivers/gpu/drm/radeon/radeon_irq_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c
@@ -87,6 +87,9 @@ static void radeon_hotplug_work_func(struct work_struct *work)
87 drm_helper_hpd_irq_event(dev); 87 drm_helper_hpd_irq_event(dev);
88} 88}
89 89
90static void radeon_dp_work_func(struct work_struct *work)
91{
92}
90/** 93/**
91 * radeon_driver_irq_preinstall_kms - drm irq preinstall callback 94 * radeon_driver_irq_preinstall_kms - drm irq preinstall callback
92 * 95 *
@@ -276,6 +279,7 @@ int radeon_irq_kms_init(struct radeon_device *rdev)
276 } 279 }
277 280
278 INIT_WORK(&rdev->hotplug_work, radeon_hotplug_work_func); 281 INIT_WORK(&rdev->hotplug_work, radeon_hotplug_work_func);
282 INIT_WORK(&rdev->dp_work, radeon_dp_work_func);
279 INIT_WORK(&rdev->audio_work, r600_audio_update_hdmi); 283 INIT_WORK(&rdev->audio_work, r600_audio_update_hdmi);
280 284
281 rdev->irq.installed = true; 285 rdev->irq.installed = true;