summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-02-13 08:46:59 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-03-31 10:17:47 +0200
commit943dd8a82f13c2e31a7f243bb15ae64edf45b7fa (patch)
tree840954b4bc61be50a75c10916735153a3b0aa505
parenta543267d44645f35346f9de5ba4a6cc37f2bb1ae (diff)
colibri_t20: hack: prevent boot lock-up if hdmi is not connected
Hack to prevent boot lock-up if HDMI is not connected. This has been observed on recent T20 SoC production lots produced some when after mid 2015. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
-rw-r--r--drivers/video/tegra/dc/dc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index d8e7319..ced1b23 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -1489,7 +1489,10 @@ static void _tegra_dc_controller_disable(struct tegra_dc *dc)
tegra_dc_writel(dc, 0, DC_CMD_INT_ENABLE);
disable_irq(dc->irq);
+#ifndef CONFIG_MACH_COLIBRI_T20
+/* Hack to prevent boot lock-up if HDMI is not connected. */
tegra_dc_clear_bandwidth(dc);
+#endif
tegra_dc_clk_disable(dc);
if (dc->out && dc->out->disable)
@@ -1586,6 +1589,8 @@ void tegra_dc_disable(struct tegra_dc *dc)
{
tegra_dc_ext_disable(dc->ext);
+ msleep(1);
+
/* it's important that new underflow work isn't scheduled before the
* lock is acquired. */
cancel_delayed_work_sync(&dc->underflow_work);