From c0808467494318029f71185b42b61f1ae153afdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Fri, 28 Mar 2014 09:27:50 -0700 Subject: [PATCH] Input: edt-ft5x06 - adjust delays to conform datasheet MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The FT5x06 datasheet specifies a minimum reset width of 5ms and a delay between deassertion of reset and start of reporting of 300ms. Adjust the delays to conform to the datasheet. With the original delays I sometimes experienced communication timeouts when initializing the controller. Signed-off-by: Lothar Waßmann Acked-by: Fugang Duan Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/edt-ft5x06.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 9d61f1e..fd18e58 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -635,7 +635,7 @@ static int edt_ft5x06_ts_reset(struct i2c_client *client, return error; } - mdelay(5); + msleep(5); gpio_set_value(tsdata->wake_pin, 1); } if (gpio_is_valid(tsdata->reset_pin)) { @@ -650,9 +650,9 @@ static int edt_ft5x06_ts_reset(struct i2c_client *client, return error; } - mdelay(50); + msleep(5); gpio_set_value(tsdata->reset_pin, 1); - mdelay(100); + msleep(300); } return 0; -- 2.7.4