From: root <root@lw.(none)>
Date: Tue, 14 Jun 2011 11:35:18 +0000 (+0800)
Subject: A22:keep tp reset high when resume to reduce current
X-Git-Tag: firefly_0821_release~10188
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cc7524966a1d7a4da9fa54e2020634bfea14855b;p=firefly-linux-kernel-4.4.55.git

A22:keep tp reset high when resume to reduce current
---

diff --git a/drivers/input/touchscreen/ili2102_ts.c b/drivers/input/touchscreen/ili2102_ts.c
index cc6f978758ee..6000f2c7dd74 100755
--- a/drivers/input/touchscreen/ili2102_ts.c
+++ b/drivers/input/touchscreen/ili2102_ts.c
@@ -285,6 +285,8 @@ static int verify_coord(struct ili2102_ts_data *ts,unsigned int *x,unsigned int
 }
 static int ili2102_init_panel(struct ili2102_ts_data *ts)
 {	
+	gpio_set_value(ts->gpio_reset, ts->gpio_reset_active_low? GPIO_LOW:GPIO_HIGH);
+	mdelay(1);
 	gpio_set_value(ts->gpio_reset, ts->gpio_reset_active_low? GPIO_HIGH:GPIO_LOW);
 	return 0;
 }
@@ -786,8 +788,6 @@ static int ili2102_ts_suspend(struct i2c_client *client, pm_message_t mesg)
 	if (ret < 0) {
 	printk("%s:err\n",__FUNCTION__);
 	}
-
-	gpio_set_value(ts->gpio_reset, ts->gpio_reset_active_low? GPIO_LOW:GPIO_HIGH);
 	
 	DBG("%s\n",__FUNCTION__);