summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tilcdc
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-05-27 10:39:52 +0300
committerJyri Sarha <jsarha@ti.com>2015-05-27 13:13:33 +0300
commite3487e07b88e4a6c3782e87416b62d5d8978936a (patch)
treecf0e4430070df959992ee5e7f9cc5c0114fb3cdf /drivers/gpu/drm/tilcdc
parent103cd8bc1c80ec0a12ef438c4493f7c26edc71bd (diff)
downloadtalos-obmc-linux-e3487e07b88e4a6c3782e87416b62d5d8978936a.tar.gz
talos-obmc-linux-e3487e07b88e4a6c3782e87416b62d5d8978936a.zip
drm/tilcdc: use pm_runtime_irq_safe()
tilcdc calls runtime PM get/put functions everywhere. Some of those places will be called in irq context, crashing the driver. As a quick fix, use pm_runtime_irq_safe() for tilcdc. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Jyri Sarha <jsarha@ti.com>
Diffstat (limited to 'drivers/gpu/drm/tilcdc')
-rw-r--r--drivers/gpu/drm/tilcdc/tilcdc_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
index fcc0508c58c0..0f283a3b932c 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
@@ -227,6 +227,7 @@ static int tilcdc_load(struct drm_device *dev, unsigned long flags)
DBG("Maximum Pixel Clock Value %dKHz", priv->max_pixelclock);
pm_runtime_enable(dev->dev);
+ pm_runtime_irq_safe(dev->dev);
/* Determine LCD IP Version */
pm_runtime_get_sync(dev->dev);
OpenPOWER on IntegriCloud