From aa20bf80c4b5e0ae8a3a1440261a97d8ab8368ec Mon Sep 17 00:00:00 2001 From: Min-wuk Lee Date: Mon, 5 Mar 2012 09:27:40 +0900 Subject: video: tegra: dc: Remove unnecessary delay in dc postsuspend Remove unnecessary 100ms delay for primary panel since this is needed for HDMI type only. Bug 940012 Change-Id: Id27966fb28faa73ade3a868a9f89cadbde76e227 Signed-off-by: Min-wuk Lee Reviewed-on: http://git-master/r/87613 Reviewed-by: Simone Willett Tested-by: Simone Willett --- drivers/video/tegra/dc/dc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'drivers/video/tegra/dc/dc.c') diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index 115e33f16df0..1a4a6cd8eb84 100644 --- a/drivers/video/tegra/dc/dc.c +++ b/drivers/video/tegra/dc/dc.c @@ -4,7 +4,7 @@ * Copyright (C) 2010 Google, Inc. * Author: Erik Gilling * - * Copyright (C) 2010-2011 NVIDIA Corporation + * Copyright (C) 2010-2012 NVIDIA Corporation * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -3022,7 +3022,11 @@ static int tegra_dc_suspend(struct nvhost_device *ndev, pm_message_t state) if (dc->out && dc->out->postsuspend) { dc->out->postsuspend(); - msleep(100); /* avoid resume event due to voltage falling */ + if (dc->out->type && dc->out->type == TEGRA_DC_OUT_HDMI) + /* + * avoid resume event due to voltage falling + */ + msleep(100); } mutex_unlock(&dc->lock); -- cgit v1.2.3