[PATCH v2 RESEND] i2c: cadence: Increase timeout per message if necessary
Wolfram Sang
wsa at kernel.org
Sat May 14 06:59:06 PDT 2022
On Wed, Apr 13, 2022 at 10:14:10AM +0100, Lucas Tanure wrote:
> Timeout as 1 second sets an upper limit on the length
> of the transfer executed, but there is no maximum length
> of a write or read message set in i2c_adapter_quirks for
> this controller.
>
> This upper limit affects devices that require sending
> large firmware blobs over I2C.
>
> To remove that limitation, calculate the minimal time
> necessary, plus some wiggle room, for every message and
> use it instead of the default one second, if more than
> one second.
>
> Signed-off-by: Lucas Tanure <tanureal at opensource.cirrus.com>
> Acked-by: Michal Simek <michal.simek at xilinx.com>
Applied to for-next, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220514/e5e2252a/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list