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)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 31 Jan 2022 11:53:52 +0000 (11:53 +0000)
commit259688ae4b8cace904ed7d424351f3bb3509e2b7
treef14a2851895ba80474c3b49bd3597c95e492273d
parent163aa02e12b31f721b5f8d2dc30829f661bbdee3
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