Skip to content

Commit

Permalink
i2c: tegra: Avoid tegra_i2c_init_dma() for Tegra210 vi i2c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sowjanya Komatineni authored and Wolfram Sang committed Jul 28, 2020
1 parent 0d72262 commit afca861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit afca861

Please sign in to comment.