RE: [PATCH v3] i2c: tegra: Share same DMA channel for RX and TX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 22/03/2023 10:24, Akhil R wrote:
> > 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@xxxxxxxxxx>
> 
> Just to confirm. This impacts all Tegra devices from Tegra20 to the
> latest. Does this work for all Tegra and the different DMA controllers
> that they have?
> 
Yes, It should. I could see in the APB DMA driver that the same channel
could be used for TX and RX and the direction is configured only during
dma_prep_*() calls.
I did not test it on a Tegra with APB DMA, but since it works very similar
to GPC DMA there should not be any impact.

Regards,
Akhil
--
nvpublic




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux