]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-nomadik: print abort cause only on abort tag
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Fri, 13 May 2011 10:29:55 +0000 (12:29 +0200)
committerBen Dooks <ben-linux@fluff.org>
Tue, 24 May 2011 23:20:36 +0000 (00:20 +0100)
commit6b0a1590138e70358e9c2c3aecce2f79473add8e
tree997042532b54dad8e2ac6cd8c3583d4b59267865
parent76da7226c5089b9bc1a4450b60f4887c42f42cae
i2c-nomadik: print abort cause only on abort tag

Modify the code to:
1)Print the cause of i2c failure only if the status is set to ABORT.
2)Print slave address on send/receive fail, will help in which slave
failed.

Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Reviewed-by: Jonas Aberg <jonas.aberg@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