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)
commit2f3a0828d46166d4e7df227479ed31766ee67e4a
tree241ada0caaf3adbe63a23a9dd81e0d3a3f63da29
parentbc1c2048abbe3c3074b4de91d213595c57741a6b
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