]> 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)
commit88b9a41805eed045913b23d3f7ce126c4f5d8398
tree241ada0caaf3adbe63a23a9dd81e0d3a3f63da29
parentf616a5d380dc410214d0c14db2937277cc0e2ffd
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