Skip to content

Commit afca861

Browse files
Sowjanya Komatineniwsakernel
authored andcommitted
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 <[email protected]> Signed-off-by: Sowjanya Komatineni <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 0d72262 commit afca861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev)
421421
dma_addr_t dma_phys;
422422
int err;
423423

424-
if (!i2c_dev->hw->has_apb_dma)
424+
if (!i2c_dev->hw->has_apb_dma || i2c_dev->is_vi)
425425
return 0;
426426

427427
if (!IS_ENABLED(CONFIG_TEGRA20_APB_DMA)) {

0 commit comments

Comments
 (0)