[v6,4/7] drm/tilcdc: use pm_runtime_irq_safe()
diff mbox

Message ID 8b81cedf6c5a7e93dc3df8284f4bc3cfa139888c.1432718049.git.jsarha@ti.com
State New
Headers show

Commit Message

Jyri Sarha May 27, 2015, 9:22 a.m. UTC
From: Tomi Valkeinen <tomi.valkeinen@ti.com>

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>
 drivers/gpu/drm/tilcdc/tilcdc_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff mbox

diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
index fcc0508..0f283a3 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_irq_safe(dev->dev);
 	/* Determine LCD IP Version */