From 1e6f956347b497256d10ff7ea62d2f8c9ef554a9 Mon Sep 17 00:00:00 2001 From: zhengxing Date: Mon, 15 Oct 2012 13:11:23 +0800 Subject: [PATCH] m701 - tp: change the order that ft5306 sleep after set reg. --- drivers/input/touchscreen/ft5306_ts_av.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/ft5306_ts_av.c b/drivers/input/touchscreen/ft5306_ts_av.c index e6a1795f97c8..bfa38cab6ff6 100644 --- a/drivers/input/touchscreen/ft5306_ts_av.c +++ b/drivers/input/touchscreen/ft5306_ts_av.c @@ -707,12 +707,16 @@ static void ft5306_suspend(struct early_suspend *h) int err; ft5x0x_ts = container_of(h, struct ft5x0x_ts_data, ft5306_early_suspend); FTprintk("TSP ft5306_suspend\n"); + err = ft5306_set_regs(this_client, 0xA5, buf_w, 1); + if (err > 0) + printk("ft5306_set_regs OK!!\n"); + + msleep(20); + if (ft5x0x_ts->platform_sleep){ ft5x0x_ts->platform_sleep(); } - err = ft5306_set_regs(this_client,0xA5,buf_w,1); - if (err>0) - printk("ft5306_set_regs OK!!\n"); + disable_irq(ft5x0x_ts->irq); } -- 2.34.1