summaryrefslogtreecommitdiffstats
path: root/drivers/video/tegra/dc/dp.c
diff options
context:
space:
mode:
authorTow Wang <toww@nvidia.com>2017-07-27 21:21:47 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-03 01:26:34 -0400
commitc2d5d7516775a9361574f146ad2b0636352bb8be (patch)
tree7c16634ebed67d46ea62b73f020c8ff03574b298 /drivers/video/tegra/dc/dp.c
parent97e9e1bea4f589dbbf9bda3e5659b29a0c893c6b (diff)
video: tegra: debugfs: delay on write hotplug
Many GVS scripts called by display_submit force assert/deassert the hotplug node under debugfs. Then they carry on execution as if the event has been processed, which is incorrect due to the asynchronous handling of hot plug detection. This workaround introduces a delay to make this node synchronous-like. Without it, GVS crashes the system when FB console is enabled. Synchronous handling needs to be implemented as a separate task. JIRA: EVLR-1679 Bug 1858144 Change-Id: Icdacbc8e7191efd5842648a5d7dcf8e570e86a33 Signed-off-by: Tow Wang <toww@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1528387 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dp.c')
-rw-r--r--drivers/video/tegra/dc/dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dp.c b/drivers/video/tegra/dc/dp.c
index fe228ced0..49a069beb 100644
--- a/drivers/video/tegra/dc/dp.c
+++ b/drivers/video/tegra/dc/dp.c
@@ -982,7 +982,7 @@ static ssize_t dbg_hotplug_write(struct file *file, const char __user *addr,
982 dc->out->hotplug_state = new_state; 982 dc->out->hotplug_state = new_state;
983 983
984 tegra_dp_pending_hpd(dp); 984 tegra_dp_pending_hpd(dp);
985 985 ssleep(2);
986 return len; 986 return len;
987} 987}
988 988