]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: rcar: make sure clocks are on when doing clock calculation
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 19 Nov 2015 15:56:41 +0000 (16:56 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Nov 2015 13:19:42 +0000 (14:19 +0100)
commitb97d728d7d096d50369c5823fb9f69bcf351b6ff
tree2daeee66c50be83d8852784cb1357a333519a936
parentcd59478e284e721a7b8ab204f564063d276991cf
i2c: rcar: make sure clocks are on when doing clock calculation

When calculating the bus speed, the clock should be on, of course. Most
bootloaders left them on, so this went unnoticed so far.

Move the ioremapping out of this clock-enabled-block and prepare for
adding hw initialization there, too.

Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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