i2c: bcm2835: Make clock-stretch timeout configurable
authorAlex Crawford <raspberrypi/linux@code.acrawford.com>
Fri, 28 Jan 2022 21:36:51 +0000 (13:36 -0800)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:39 +0000 (16:04 +0000)
commitcdcbb54edacfd27de24f613068b8bf0fd2d3f061
treec3f2efc11e1850cabf30871fe1dfde17c2e0570e
parent989d7dc9342ea14716d34c2b4f42455d8cdaff90
i2c: bcm2835: Make clock-stretch timeout configurable

The default clock-stretch timeout is 35 mS, which works well for
SMBus, but there are some I2C devices which can stretch the clock even
longer. Rather than trying to prescribe a safe default for everyone,
allow the timeout to be configured.

Signed-off-by: Alex Crawford <raspberrypi/linux@code.acrawford.com>
drivers/i2c/busses/i2c-bcm2835.c