input: touch: maxim_sti: dvdd_on init val change
Min-wuk Lee [Thu, 31 Oct 2013 01:58:02 +0000 (10:58 +0900)]
In change I204b4c1a73aeff2fcd29e00a818e409a85c8a6e9,
there's precondition to apply workaround to reduce
LGD T4 delay, but we don't need to obey this precondition
in device power on, since there's no power rail off.
This can be accomplished by setting touch_dvdd_on
initial state to true.

Bug 1367030

Change-Id: I2a7f5ba9d740afd02aa034898e226b610b662f62
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/325949
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

drivers/input/touchscreen/maxim_sti.c
drivers/video/tegra/of_lcd_device_data/tegratab_lcd_dev_data.c

index 0adc131..67b4356 100644 (file)
@@ -109,7 +109,7 @@ struct dev_data {
 #endif
 };
 
-atomic_t touch_dvdd_on = ATOMIC_INIT(0);
+atomic_t touch_dvdd_on = ATOMIC_INIT(1);
 static int prev_dvdd_rail_state;
 
 static struct list_head  dev_list;
index 589253b..dc25227 100644 (file)
@@ -132,6 +132,11 @@ static int lgd_wxga_7_0_enable(struct device *dev)
         *    then, we don't need 1S delay. If 1v8 is turned
         *    off in panel on request time, we don't need
         *    1S delay, either.
+
+        * In device power on, we don't need to obey this
+        * precondition, since there's no power rail off.
+        * This can be accomplished by setting touch_dvdd_on
+        * initial state to true.
         */
 
        if ((!atomic_read(&touch_dvdd_on)) &&