Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: tegra: Avoid tegra_i2c_init_dma() for Tegra210 vi i2c

VI I2C is on host1x bus so APB DMA can't be used for Tegra210 VI
I2C and there are no tx and rx dma channels for VI I2C.

So, avoid attempt of requesting DMA channels.

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

authored by

Sowjanya Komatineni and committed by
Wolfram Sang
afca861b 0d722620

+1 -1
+1 -1
drivers/i2c/busses/i2c-tegra.c
··· 421 421 dma_addr_t dma_phys; 422 422 int err; 423 423 424 - if (!i2c_dev->hw->has_apb_dma) 424 + if (!i2c_dev->hw->has_apb_dma || i2c_dev->is_vi) 425 425 return 0; 426 426 427 427 if (!IS_ENABLED(CONFIG_TEGRA20_APB_DMA)) {