Commit e3487e07 authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Jyri Sarha

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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
parent 103cd8bc
...@@ -227,6 +227,7 @@ static int tilcdc_load(struct drm_device *dev, unsigned long flags) ...@@ -227,6 +227,7 @@ static int tilcdc_load(struct drm_device *dev, unsigned long flags)
DBG("Maximum Pixel Clock Value %dKHz", priv->max_pixelclock); DBG("Maximum Pixel Clock Value %dKHz", priv->max_pixelclock);
pm_runtime_enable(dev->dev); pm_runtime_enable(dev->dev);
pm_runtime_irq_safe(dev->dev);
/* Determine LCD IP Version */ /* Determine LCD IP Version */
pm_runtime_get_sync(dev->dev); pm_runtime_get_sync(dev->dev);
......
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