w1: mxc_w1: Optimize mxc_w1_ds2_touch_bit()
authorAlexander Shiyan <shc_work@mail.ru>
Thu, 8 May 2014 07:56:40 +0000 (11:56 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 00:43:34 +0000 (17:43 -0700)
commitf80b2581a7068907076ca92c43866f36f446c039
tree8b98431b0debc428c33bfde35fe310a89fbd63b4
parentb7ce0b5d03f303cba0fff3f9df17f400d4e7a2d8
w1: mxc_w1: Optimize mxc_w1_ds2_touch_bit()

According to the i.MX reference manual, the read/write bit operations
takes from 60 us to 120 us.
This patch optimizes mxc_w1_ds2_touch_bit() function to use proper
value for such delay. Nevertheless, a small margin for the timeout has
been added for the case if clock frequency is inaccurate.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/mxc_w1.c