]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: meson: keep peripheral clock enabled
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 7 Oct 2020 08:07:50 +0000 (10:07 +0200)
committerWolfram Sang <wsa@kernel.org>
Thu, 8 Oct 2020 09:57:14 +0000 (11:57 +0200)
commit07f824e5420407e004b6c02265df5f24dd4c4cc7
treedffa45e184d43dfe2054e5f4af447f96d5e0e55b
parent72ca5cb68a16f453b058f49eeee50ce163cb18a4
i2c: meson: keep peripheral clock enabled

SCL rate appears to be different than what is expected. For example,
We get 164kHz on i2c3 of the vim3 when 400kHz is expected. This is
partially due to the peripheral clock being disabled when the clock is
set.

Let's keep the peripheral clock on after probe to fix the problem. This
does not affect the SCL output which is still gated when i2c is idle.

Fixes: 3743deb7302a ("i2c: meson: set clock divider in probe instead of setting it for each transfer")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-meson.c