Commit de6284aa authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher

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: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 87f5942d
...@@ -2412,6 +2412,7 @@ struct radeon_device { ...@@ -2412,6 +2412,7 @@ struct radeon_device {
struct radeon_rlc rlc; struct radeon_rlc rlc;
struct radeon_mec mec; struct radeon_mec mec;
struct work_struct hotplug_work; struct work_struct hotplug_work;
struct work_struct dp_work;
struct work_struct audio_work; struct work_struct audio_work;
int num_crtc; /* number of crtcs */ int num_crtc; /* number of crtcs */
struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */ struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */
......
...@@ -87,6 +87,9 @@ static void radeon_hotplug_work_func(struct work_struct *work) ...@@ -87,6 +87,9 @@ static void radeon_hotplug_work_func(struct work_struct *work)
drm_helper_hpd_irq_event(dev); drm_helper_hpd_irq_event(dev);
} }
static void radeon_dp_work_func(struct work_struct *work)
{
}
/** /**
* radeon_driver_irq_preinstall_kms - drm irq preinstall callback * radeon_driver_irq_preinstall_kms - drm irq preinstall callback
* *
...@@ -276,6 +279,7 @@ int radeon_irq_kms_init(struct radeon_device *rdev) ...@@ -276,6 +279,7 @@ int radeon_irq_kms_init(struct radeon_device *rdev)
} }
INIT_WORK(&rdev->hotplug_work, radeon_hotplug_work_func); INIT_WORK(&rdev->hotplug_work, radeon_hotplug_work_func);
INIT_WORK(&rdev->dp_work, radeon_dp_work_func);
INIT_WORK(&rdev->audio_work, r600_audio_update_hdmi); INIT_WORK(&rdev->audio_work, r600_audio_update_hdmi);
rdev->irq.installed = true; rdev->irq.installed = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment