Re: [PATCH 1/1] Input: atmel_mxt_ts: split large i2c transfers into blocks
From: Dmitry Torokhov
Date: Thu Jul 30 2020 - 01:55:15 EST
Hi Jiada,
On Wed, Jul 29, 2020 at 06:22:52PM +0900, Jiada Wang wrote:
> From: Jiada wang <jiada_wang@xxxxxxxxxx>
>
> Some I2C controllers constrain maximum transferred data in an I2C
> transaction by set max_[read|write]_len of i2c_adapter_quirk.
> Large i2c transfer transaction beyond this limitation may fail to complete,
> cause I2C controller driver aborts the transaction and returns failure.
>
> Therefore this patch was created to split large i2c transaction into
> smaller chunks which can complete within max_[read|write]_len defined
> by I2C controller driver.
Can we consider implementing this chunking logic in i2c core? Otherwise
we will need to adjust pretty much every driver to do this.
Thanks.
--
Dmitry