Message ID | 1389961718-8130-5-git-send-email-LW@KARO-electronics.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index ec6b3e5..bd42845 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -653,9 +653,9 @@ static int edt_ft5x06_ts_reset(struct i2c_client *client, return error; } - mdelay(50); + mdelay(5); gpio_set_value(tsdata->reset_pin, 1); - mdelay(100); + msleep(300); } return 0;
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 <LW@KARO-electronics.de> --- drivers/input/touchscreen/edt-ft5x06.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)