aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2016-09-07 04:46:40 -0400
committerJyri Sarha <jsarha@ti.com>2016-09-07 08:54:42 -0400
commit6c94c71400fbb630549611e17b430458c1c00cf8 (patch)
treeb32027199d969f60fe0b322756be453516783eea /drivers/gpu
parent7eff0410276374c560e797e7676b7111fed24a3c (diff)
drm/tilcdc: Take CRTC lock when calling tilcdc_crtc_disable()
Take CRTC lock when calling tilcdc_crtc_disable() in tilcdc_crtc_destroy(). In theory there could still be some operation ongoing, which should finish before destroying the CRTC. However, the main reason for adding this is to be able to add WARNing in tilcdc_crtc_disable() if CRTC is not locked. Signed-off-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/tilcdc/tilcdc_crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
index 41ce411a64f9..c1cbabcfb9d4 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
@@ -230,7 +230,9 @@ static void tilcdc_crtc_destroy(struct drm_crtc *crtc)
230 struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); 230 struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc);
231 struct tilcdc_drm_private *priv = crtc->dev->dev_private; 231 struct tilcdc_drm_private *priv = crtc->dev->dev_private;
232 232
233 drm_modeset_lock_crtc(crtc, NULL);
233 tilcdc_crtc_disable(crtc); 234 tilcdc_crtc_disable(crtc);
235 drm_modeset_unlock_crtc(crtc);
234 236
235 flush_workqueue(priv->wq); 237 flush_workqueue(priv->wq);
236 238