From: 蔡枫 Date: Tue, 2 Aug 2011 11:24:59 +0000 (+0800) Subject: newton:fix gt819 and ft5406 irq disable bug X-Git-Tag: firefly_0821_release~9775^2~3^2~25 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8d84998643fcb67c9b0f39dbd7af028829e01ab9;p=firefly-linux-kernel-4.4.55.git newton:fix gt819 and ft5406 irq disable bug --- diff --git a/drivers/input/touchscreen/ft5406_ts.c b/drivers/input/touchscreen/ft5406_ts.c index 4812aac4b396..3a27a81a2114 100755 --- a/drivers/input/touchscreen/ft5406_ts.c +++ b/drivers/input/touchscreen/ft5406_ts.c @@ -568,6 +568,7 @@ static void ft5406_queue_work(struct work_struct *work) #endif if (ret < 0) { dev_err(&data->client->dev, "ft5406_read_regs fail:%d!\n",ret); + enable_irq(data->irq); return; } #if 0 diff --git a/drivers/input/touchscreen/gt819.c b/drivers/input/touchscreen/gt819.c index 92906cfaffc7..27ea80568ddb 100755 --- a/drivers/input/touchscreen/gt819.c +++ b/drivers/input/touchscreen/gt819.c @@ -411,6 +411,7 @@ static void gt819_queue_work(struct work_struct *work) ret = gt819_read_regs(ts->client,1, point_data, 1); if (ret < 0) { dev_err(&ts->client->dev, "i2c_read_bytes fail:%d!\n",ret); + enable_irq(ts->irq); return; } @@ -431,6 +432,7 @@ static void gt819_queue_work(struct work_struct *work) ret = gt819_read_regs(ts->client,3, point_data, points*5); if (ret < 0) { dev_err(&ts->client->dev, "i2c_read_bytes fail:%d!\n",ret); + enable_irq(ts->irq); return; } for(i=0;i