diff options
author | Sowjanya Komatineni | 2020-07-27 13:57:23 -0700 |
---|---|---|
committer | Wolfram Sang | 2020-07-28 18:32:54 +0200 |
commit | afca861bc6a3141c858d08279eb9afca76584fa6 (patch) | |
tree | 55a982d5e0296b08b3622d326bf730a7675455eb /drivers | |
parent | 0d722620986722208c6bc2a67f5d68aa73b7cd5f (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 1bf36669ca67..00d3e4d7a01e 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -421,7 +421,7 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev) dma_addr_t dma_phys; int err; - if (!i2c_dev->hw->has_apb_dma) + if (!i2c_dev->hw->has_apb_dma || i2c_dev->is_vi) return 0; if (!IS_ENABLED(CONFIG_TEGRA20_APB_DMA)) { |