diff options
author | Haibo Chen <haibo.chen@freescale.com> | 2014-09-03 13:52:07 +0800 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-09-29 22:41:18 +0200 |
commit | 639a26cf0771cb5a4d61a0f7777882cbda989753 (patch) | |
tree | 2228ecec63584a220d06028be7f302c75c5750a6 /scripts | |
parent | 29209338b22a61c9ba67badd5f36e96cda1892d8 (diff) | |
download | talos-op-linux-639a26cf0771cb5a4d61a0f7777882cbda989753.tar.gz talos-op-linux-639a26cf0771cb5a4d61a0f7777882cbda989753.zip |
i2c: imx: Add arbitration lost check
According to the i.mx spec, for multimaster mode, if I2C is
enabled when the bus is busy and asserts start, hardware inhibits
the transmission, clears MSTA without signaling a stop, generate
an interrupt, and set I2C_I2SR[IAL] to indicate a failed attempt
to engage the bus, which means arbitration lost. In this case,
we should first test I2C_I2SR[IAL], and clear this bit if it is
set, and then I2C controller default to slave receive mode.
This patch check the IAL bit every time before an I2c transmission.
if IAL is set, clear it and make I2C controller to default mode.
Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
Acked-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions