From: 黄涛 Date: Mon, 30 Jul 2012 06:07:25 +0000 (+0800) Subject: ts: rk29_i2c_goodix: goodix_init_panel retry write cfg info when error X-Git-Tag: firefly_0821_release~8960 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=50762b57e5adb470c8dbb277b6958ff7b5118692;p=firefly-linux-kernel-4.4.55.git ts: rk29_i2c_goodix: goodix_init_panel retry write cfg info when error --- diff --git a/drivers/input/touchscreen/rk29_i2c_goodix.c b/drivers/input/touchscreen/rk29_i2c_goodix.c index a00966b58eba..2a2fde8585cd 100755 --- a/drivers/input/touchscreen/rk29_i2c_goodix.c +++ b/drivers/input/touchscreen/rk29_i2c_goodix.c @@ -223,10 +223,9 @@ static int goodix_init_panel(struct rk_ts_data *ts) while(--retry && (goodix_config_ok(ts) < 0)){ ret=goodix_i2c_write_bytes(ts->client,config_info, (sizeof(config_info)/sizeof(config_info[0]))); if (ret < 0) { - printk("goodix write cfg info err"); - return ret; + printk("goodix write cfg info err, retry %d\n", retry); + msleep(100); } - msleep(100); } if(retry <= 0){