summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core.h
diff options
context:
space:
mode:
authorLucas Tanure <tanureal@opensource.cirrus.com>2022-04-13 10:14:10 +0100
committerWolfram Sang <wsa@kernel.org>2022-05-14 15:58:56 +0200
commit96789dce043f5bff8b7d62aa28d52a7c59403a84 (patch)
tree6976bc8715af5c8efe8f9fd12fdf09d2db2114f2 /drivers/i2c/i2c-core.h
parente17daa3b58ed8ba187475b4bb12ca21193596cb3 (diff)
downloadlinux-96789dce043f5bff8b7d62aa28d52a7c59403a84.tar.bz2
i2c: cadence: Increase timeout per message if necessary
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@opensource.cirrus.com> Acked-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/i2c-core.h')
0 files changed, 0 insertions, 0 deletions