]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: pxa: No need to set slave addr for i2c master mode reset
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Tue, 14 Jul 2015 07:36:41 +0000 (13:06 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:29 +0000 (08:37 +0200)
commitca9491f016a050a762a387312917a1bd482e4c27
treedb8a594b1589a2562fdea5c2253d59b7f4b552fa
parentd551d86dbc500c5386febef0b64fd9b792040ac8
i2c: pxa: No need to set slave addr for i2c master mode reset

Normally i2c controller works as master, so slave addr is not needed, or
it will impact some slave device (eg. ST NFC chip) i2c accesses, because
it has the same i2c address with controller.

For example,
On the pxa1928 based platform, where PMIC (88pm860) is present @0x30
address on TWSI0 interface, and if we set 0x30 as a slave address in
pxa1928 TWSI0 module, all the transactions towards PMIC would go for toss.

Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pxa.c