]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
i2c: tegra: Fix runtime resume to re-init VI I2C
authorSowjanya Komatineni <skomatineni@nvidia.com>
Mon, 27 Jul 2020 20:57:22 +0000 (13:57 -0700)
committerWolfram Sang <wsa@kernel.org>
Tue, 28 Jul 2020 16:32:32 +0000 (18:32 +0200)
commit0d722620986722208c6bc2a67f5d68aa73b7cd5f
tree6eead590290d6df34b990d6679fae26fe5fd5d94
parent42aa38b54e35216351e52bb03382a38edc6f1bb8
i2c: tegra: Fix runtime resume to re-init VI I2C

VI I2C is on host1x bus and is part of VE power domain.

During suspend/resume VE power domain goes through power off/on.

So, controller reset followed by i2c re-initialization is required
after the domain power up.

This patch fixes it.

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