i2c: uniphier-f: set the adapter to master mode when probing
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 1 Sep 2016 11:46:30 +0000 (20:46 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 8 Sep 2016 20:41:31 +0000 (22:41 +0200)
commit0b1c7716fd871eaa6cb4a9a1df5396302411255a
tree8c82d077d6ca578e64e344c5e71c2988948c3471
parent405188e86a4acb732f94f6d7a00b7fbb89cf5309
i2c: uniphier-f: set the adapter to master mode when probing

Currently, the adapter is set to the master mode at the first use.
Since then, it is kept in the slave mode, so unexpected glitch
signals on the I2C lines may cause the adapter into insane state.
Setting it to the master mode along with initialization solves the
problem.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reported-by: Akio Noda <noda.akio@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-uniphier-f.c