diff options
author | Avinash A <Avinash.a@stericsson.com> | 2011-10-19 10:49:37 +0530 |
---|---|---|
committer | Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> | 2011-10-19 13:45:49 +0200 |
commit | 8724e139d9b423c992947f6f1c5b4d8356e5a218 (patch) | |
tree | 3aef0b904da12e7f19ac299df0e23f45d1ebaf57 /drivers | |
parent | 5134e51a1007a16ecdff41238d375ad046e7e9d5 (diff) |
input: ts-cypress reduce the delays
The gesture set up is done after it
is checked for correct values in the
operational mode.
In the operational mode if there is
failure it is retried 26 times which
delays the bootup
This fixes these issue along with
the boot delay reduction
ST-Ericsson ID: 364302
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I80b2dc32434b839933f5378e892ffc336e989de2
Signed-off-by: Avinash A <Avinash.a@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34418
Reviewed-by: Avinash A <avinash.a@stericsson.com>
Tested-by: Avinash A <avinash.a@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'drivers')
-rwxr-xr-x | drivers/input/touchscreen/cyttsp_core.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/input/touchscreen/cyttsp_core.c b/drivers/input/touchscreen/cyttsp_core.c index 7a2aa109034..29004530ab5 100755 --- a/drivers/input/touchscreen/cyttsp_core.c +++ b/drivers/input/touchscreen/cyttsp_core.c @@ -147,7 +147,7 @@ #define CY_MAXZ 255 #define CY_OK 0 #define CY_INIT 1 -#define CY_DELAY_DFLT 20 /* ms */ +#define CY_DELAY_DFLT 10 /* ms */ #define CY_DELAY_MAX (500/CY_DELAY_DFLT) /* half second */ #define CY_DELAY_SYSINFO 20 /* ms */ #define CY_MODE_CHANGE_DELAY 30 /* ms */ @@ -1330,9 +1330,9 @@ static int cyttsp_exit_bl_mode(struct cyttsp *ts) goto fail; } do { - msleep(20); + msleep(10); cyttsp_load_bl_regs(ts); - } while (GET_BOOTLOADERMODE(ts->bl_data.bl_status) && tries++ < 10); + } while (GET_BOOTLOADERMODE(ts->bl_data.bl_status) && tries++ < 1); DBG2(printk(KERN_INFO "%s: read tries=%d\n", __func__, tries);) @@ -1469,7 +1469,7 @@ static int cyttsp_set_operational_mode(struct cyttsp *ts) } /* wait for TTSP Device to complete switch to Operational mode */ - msleep(20); + msleep(10); tries = 0; gest_default = @@ -1606,6 +1606,9 @@ static int cyttsp_power_on(struct cyttsp *ts) if (retval < 0) goto bypass; + /* init gesture setup; required for active distance */ + cyttsp_gesture_setup(ts); + /* switch back to Operational mode */ DBG2(printk(KERN_INFO"%s: switch back to operational mode\n", __func__);) @@ -1613,9 +1616,6 @@ static int cyttsp_power_on(struct cyttsp *ts) if (retval < 0) goto bypass; - /* init gesture setup; required for active distance */ - cyttsp_gesture_setup(ts); - bypass: if (retval) ts->platform_data->power_state = CY_IDLE_STATE; |