]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: st: Fix return in case of arbitration lost
authorMaxime COQUELIN <maxime.coquelin@st.com>
Fri, 28 Feb 2014 12:52:56 +0000 (13:52 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Mar 2014 16:35:08 +0000 (17:35 +0100)
commitc6aa22f06c6e1c6d7c872382991a67d5e6865e42
tree470cf4319541d41a2300f8a2826f83eb1b2e2aee
parent3b7d60b6f5795fe5b823382618667d199f6fcd8c
i2c: st: Fix return in case of arbitration lost

This patch fixes the error returned to the i2c_transfer function
to -EAGAIN in case of arbitratin lost, so that the retry mechanism
can be used.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-st.c