From: Erik Gilling <konkers@android.com>
Date: Tue, 19 Oct 2010 21:51:09 +0000 (-0700)
Subject: video: tegra: clear video modes on hdmi unplug
X-Git-Tag: firefly_0821_release~9833^2~146^2
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=61804f1c4993adc1df1f2ebd4425b1249b7e531a;p=firefly-linux-kernel-4.4.55.git

video: tegra: clear video modes on hdmi unplug

Change-Id: If9aabc5efa1b934c94e71e0210f38979f6f7e58e
Signed-off-by: Erik Gilling <konkers@android.com>
---

diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c
index 4be656e35125..58ad135b90cc 100644
--- a/drivers/video/tegra/dc/hdmi.c
+++ b/drivers/video/tegra/dc/hdmi.c
@@ -465,8 +465,10 @@ static void tegra_dc_hdmi_detect_worker(struct work_struct *work)
 		container_of(to_delayed_work(work), struct tegra_dc_hdmi_data, work);
 	struct tegra_dc *dc = hdmi->dc;
 
-	if (!tegra_dc_hdmi_detect(dc))
+	if (!tegra_dc_hdmi_detect(dc)) {
 		tegra_dc_disable(dc);
+		tegra_fb_update_monspecs(dc->fb, NULL, NULL);
+	}
 }
 
 static irqreturn_t tegra_dc_hdmi_irq(int irq, void *ptr)