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, 19 Feb 2024 11:33:17 +0000 (11:33 +0000)
commit8d413ec1991e48f2a2254f281eae410a7b15d947
tree4586b592b92a4e021f1dadba425f5cf93fefe583
parent558f42503d7704c0c6db8041966cbe8cc8eea20f
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