video: tegra: dc: Remove unnecessary delay in dc postsuspend
Min-wuk Lee [Mon, 5 Mar 2012 00:27:40 +0000 (09:27 +0900)]
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 <mlee@nvidia.com>
Reviewed-on: http://git-master/r/87613
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/video/tegra/dc/dc.c

index 115e33f..1a4a6cd 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2010 Google, Inc.
  * Author: Erik Gilling <konkers@android.com>
  *
- * 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);