[Letux-kernel] [PATCH letux] panel-boe-w667l: hack-fix disapble oopses

Andreas Kemnade andreas at kemnade.info
Fri Nov 30 23:09:09 CET 2018


no idea if this is right, what the real fix is.
depends on:
https://patchwork.kernel.org/cover/10692757/

Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
---
 drivers/gpu/drm/omapdrm/displays/panel-boe-w677l.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/omapdrm/displays/panel-boe-w677l.c b/drivers/gpu/drm/omapdrm/displays/panel-boe-w677l.c
index 5db180711d79..b3a86d66b028 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-boe-w677l.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-boe-w677l.c
@@ -786,16 +786,24 @@ static void w677l_disable(struct omap_dss_device *dssdev)
 
 	ddata->enabled = 0;
 	in->ops->dsi.disable_video_output(in, ddata->pixel_channel);
-	in->ops->disable(in);
+	dev_dbg(&ddata->pdev->dev, "disabled video()\n");
+	if (in->ops->disable) {
+		in->ops->disable(in);
+	} else {
+		dev_dbg(&ddata->pdev->dev, "no disable op??\n");
+	}
+	dev_dbg(&ddata->pdev->dev, "disabled in()\n");
 	mdelay(10);
 	w677l_reset(dssdev, true);	/* activate reset */
 	w677l_regulator(dssdev, false);	/* switch power off - after stopping video stream */
 	mdelay(20);
 	/* here we can also power off IOVCC */
 
+	dev_dbg(&ddata->pdev->dev, "unlock bus()\n");
 	in->ops->dsi.bus_unlock(in);
 
 	mutex_unlock(&ddata->lock);
+	dev_dbg(&ddata->pdev->dev, "disable finished)\n");
 
 	dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
 }
-- 
2.11.0



More information about the Letux-kernel mailing list