]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: tegra: Create i2c_writesl_vi() to use with VI I2C for filling TX FIFO
authorSowjanya Komatineni <skomatineni@nvidia.com>
Tue, 12 Jan 2021 19:02:41 +0000 (11:02 -0800)
committerWolfram Sang <wsa@kernel.org>
Sun, 17 Jan 2021 11:24:21 +0000 (12:24 +0100)
commita87d144b5a6ed061baf04e9b862ded2f37987cec
tree241ada0caaf3adbe63a23a9dd81e0d3a3f63da29
parentf9501b9dc950b673da98b1b0442c056b9e4d7821
i2c: tegra: Create i2c_writesl_vi() to use with VI I2C for filling TX FIFO

VI I2C controller has known hardware bug where immediate multiple
writes to TX_FIFO register gets stuck.

Recommended software work around is to read I2C register after
each write to TX_FIFO register to flush out the data.

This patch implements this work around for VI I2C controller.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-tegra.c