m701 - tp: change the order that ft5306 sleep after set reg.
authorzhengxing <zhengxing@rock-chips.com>
Mon, 15 Oct 2012 05:11:23 +0000 (13:11 +0800)
committerzhengxing <zhengxing@rock-chips.com>
Mon, 15 Oct 2012 05:12:09 +0000 (13:12 +0800)
drivers/input/touchscreen/ft5306_ts_av.c

index e6a1795f97c89e55e4da3bd7422058244c78eba2..bfa38cab6ff6229d0db59354ed1548fbf6556249 100644 (file)
@@ -707,12 +707,16 @@ static void ft5306_suspend(struct early_suspend *h)
        int err;\r
     ft5x0x_ts = container_of(h, struct ft5x0x_ts_data, ft5306_early_suspend);\r
        FTprintk("TSP ft5306_suspend\n");\r
+    err = ft5306_set_regs(this_client, 0xA5, buf_w, 1);\r
+    if (err > 0)\r
+        printk("ft5306_set_regs OK!!\n");\r
+\r
+    msleep(20);\r
+\r
        if (ft5x0x_ts->platform_sleep){ \r
                ft5x0x_ts->platform_sleep();\r
        }\r
-               err = ft5306_set_regs(this_client,0xA5,buf_w,1);\r
-       if (err>0)\r
-               printk("ft5306_set_regs OK!!\n");\r
+\r
        disable_irq(ft5x0x_ts->irq);\r
 }\r
 \r