From: Dave Airlie Date: Mon, 23 Feb 2015 23:23:56 +0000 (+1000) Subject: radeon: introduce a dp_work handler X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de6284aa0162e6814e4d5f17a0177e0e5aee1ce5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Alex Deucher --- 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 { struct radeon_rlc rlc; struct radeon_mec mec; struct work_struct hotplug_work; + struct work_struct dp_work; struct work_struct audio_work; int num_crtc; /* number of crtcs */ 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) 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 * @@ -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->dp_work, radeon_dp_work_func); INIT_WORK(&rdev->audio_work, r600_audio_update_hdmi); rdev->irq.installed = true;