i2c: tegra: Share same DMA channel for RX and TX
authorAkhil R <akhilrajeev@nvidia.com>
Thu, 27 Apr 2023 12:39:15 +0000 (18:09 +0530)
committerWolfram Sang <wsa@kernel.org>
Mon, 5 Jun 2023 08:21:43 +0000 (10:21 +0200)
commitfcc8a89a1c839bbe274de8e518ce7886553ddcc6
tree35a92e6d88b17f38132cb1e34c1acda74dac095a
parentbcfc2ab7f43508ec6e80353768a77aedc883e568
i2c: tegra: Share same DMA channel for RX and TX

Allocate only one DMA channel for I2C and share it for both TX and RX
instead of using two different DMA hardware channels with the same
slave ID. Since I2C supports only half duplex, there is no impact on
perf with this.

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-tegra.c