i2c-nomadik: reset the hw after status check
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Fri, 13 May 2011 10:30:53 +0000 (12:30 +0200)
committerBen Dooks <ben-linux@fluff.org>
Tue, 24 May 2011 23:20:54 +0000 (00:20 +0100)
commit0511f643cbe6990daf4b53b1268b5c2ea28d1733
tree28853979c95e16aa8b6b8e2d88f595a3553e71dd
parentb5e890f7e70707d1e10e8d4844806d2223e8b36d
i2c-nomadik: reset the hw after status check

In case of I2C timeout, reset the HW only after the HW status
is read, otherwise the staus will be lost.

Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-nomadik.c