mfd: tps65910: Work around silicon erratum SWCZ010
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 22 Aug 2014 15:30:56 +0000 (17:30 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:15:48 +0000 (08:15 +0100)
commitbe1c770028b832945680ebf5c0d49b831ba719d5
treece5b123bff0c5b6d8f1f5541045c9225ddcba697
parentdfa52c852dd3fcf3c0e696ab2d7df0bf91b2aed9
mfd: tps65910: Work around silicon erratum SWCZ010

http://www.ti.com/lit/pdf/SWCZ010:
  Glitch on SDA-SCL not managed correctly by the I2C IP

Impact:
The standard specifies that the I2C transfer should restart on a start
event in all cases. The current design does not support two consecutive
Start conditions. This can cause the first real access after such a
glitch to be corrupted.

Description:
An unexpected glitch on SDA and SCL can generate a wrong start event.
In the current design, the SCL line must toggle two times to detect a
new start event and completely restart the I2C access; hence the real
start event is not detected in the case of a single SCL toggle.

Workaround:
Repeat I2C access.

A simpler workaround is to make a dummy transfer just before the first
access to the tps65910 chip. This can be done unconditionally.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps65910.c
This page took 0.028413 seconds and 5 git commands to generate.