Re: [PATCH] aspeed: i2c: Fix DMA len write-enable bit handling

2022-06-24 Thread Cédric Le Goater
On 6/24/22 22:34, Peter Delevoryas wrote: On Jun 24, 2022, at 1:31 PM, Peter Delevoryas wrote: I noticed i2c rx transfers were getting shortened to "1" on Zephyr. It seems to be because the Zephyr i2c driver sets the RX DMA len with the RX field write-enable bit set (bit 31) to avoid a read-

Re: [PATCH] aspeed: i2c: Fix DMA len write-enable bit handling

2022-06-24 Thread Peter Delevoryas
> On Jun 24, 2022, at 1:31 PM, Peter Delevoryas wrote: > > I noticed i2c rx transfers were getting shortened to "1" on Zephyr. It > seems to be because the Zephyr i2c driver sets the RX DMA len with the > RX field write-enable bit set (bit 31) to avoid a read-modify-write. [1] > > /* 0x1C : I2

[PATCH] aspeed: i2c: Fix DMA len write-enable bit handling

2022-06-24 Thread Peter Delevoryas
I noticed i2c rx transfers were getting shortened to "1" on Zephyr. It seems to be because the Zephyr i2c driver sets the RX DMA len with the RX field write-enable bit set (bit 31) to avoid a read-modify-write. [1] /* 0x1C : I2CM Master DMA Transfer Length Register */ I think we should be check