Commit 3b7cc1146fc8275185929202d5b2ff3372a9ff25
Committed by
Sekhar Nori
1 parent
4d69a651ca
Exists in
ti-linux-3.14.y
and in
2 other branches
Input: edt-ft5x06 - adjust delays to conform datasheet
[ Upstream commit c0808467494318029f71185b42b61f1ae153afdc ] 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> Acked-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
drivers/input/touchscreen/edt-ft5x06.c
... | ... | @@ -635,7 +635,7 @@ |
635 | 635 | return error; |
636 | 636 | } |
637 | 637 | |
638 | - mdelay(5); | |
638 | + msleep(5); | |
639 | 639 | gpio_set_value(tsdata->wake_pin, 1); |
640 | 640 | } |
641 | 641 | if (gpio_is_valid(tsdata->reset_pin)) { |
642 | 642 | |
... | ... | @@ -650,9 +650,9 @@ |
650 | 650 | return error; |
651 | 651 | } |
652 | 652 | |
653 | - mdelay(50); | |
653 | + msleep(5); | |
654 | 654 | gpio_set_value(tsdata->reset_pin, 1); |
655 | - mdelay(100); | |
655 | + msleep(300); | |
656 | 656 | } |
657 | 657 | |
658 | 658 | return 0; |