]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: davinci: Avoid sending to own address
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Tue, 9 Jun 2015 11:10:10 +0000 (13:10 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 10 Jun 2015 13:11:51 +0000 (22:11 +0900)
commit84e75f9e78f532fe3a0a3167f649a446f80e2778
treeaa03498179a2a63183908fc63833cde6dda28220
parentececc0a4238c196bf2d01b3d79c047643affe22b
i2c: davinci: Avoid sending to own address

Sending a message to own address locks the controller up in very bizarre state,
it behaves as slave even if MDR register clearly states master. The controller
remains in this state until reset. To avoid unnecessary timeouts simply avoid
sending to own address. The controller cannot do this any way. Also, do not
enable AAS IRQ, as the slave mode is not supported by the driver and the only
possibility to trigger this IRQ is to send to own address.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-davinci.c