i2c: rcar: rework hw init
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 3 Sep 2015 20:20:05 +0000 (22:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 9 Oct 2015 21:29:28 +0000 (22:29 +0100)
commit93c659d820ef291f6ca5e628f44b26cfb2226aba
treeda6a8f48c8dd17ea6ef721a4a360fac958898db6
parent049e6dde7e57f0054fdc49102e7ef4830c698b46
i2c: rcar: rework hw init

We don't need to init HW before every transfer since we know the HW
state then. HW init at probe time is enough. While here, add setting the
clock register which belongs to init HW. Also, set MDBS bit since not
setting it is prohibited according to the manual.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c