i2c: i2c-cros-ec-tunnel: Set retries to 3
authorDerek Basehore <dbasehore@chromium.org>
Thu, 18 Sep 2014 15:18:55 +0000 (17:18 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 6 Oct 2014 20:30:04 +0000 (21:30 +0100)
commit97720706084dd8c45eecc61d39353c7b62939b8f
treea7781b592c496e9d4da720d7d668f6aeaf70b40d
parent63427530fa7a78b42a19f47fb0c12b303c0666ca
i2c: i2c-cros-ec-tunnel: Set retries to 3

Since the i2c bus can get wedged on the EC sometimes, set the number of retries
to 3. Since we un-wedge the bus immediately after the wedge happens, this is the
correct fix since only one transfer will fail.

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/i2c/busses/i2c-cros-ec-tunnel.c