]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-eg20t : Fix the issue of Combined R/W transfer mode
authorTomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Thu, 23 Jun 2011 07:17:10 +0000 (16:17 +0900)
committerBen Dooks <ben-linux@fluff.org>
Wed, 13 Jul 2011 22:01:32 +0000 (23:01 +0100)
commit650d96ab785c0786cb3c9dfefa0dfd6d47d0f681
treeaae8b045838077cabe1791a4d80a68098ddd7128
parent8961c7cdf8e11f54d9c171be668a009c05aa49bf
i2c-eg20t : Fix the issue of Combined R/W transfer mode

issue-1
In case combined transfer mode fails halfway, the processing must be stopped halfway.
However currently, the processing is continued.
This patch breaks the processing.

issue-2
Currently, pch_i2c_xfer returns read/write size at that time.
However pch_i2c_xfer must return the number of messages to be read/written.
This patch modifies correctly.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-eg20t.c