[PATCH] i2c: bcm2835: Avoid clock stretching timeouts
Eric Anholt
eric at anholt.net
Mon Feb 26 15:33:50 PST 2018
Stefan Wahren <stefan.wahren at i2se.com> writes:
> From: Eric Anholt <eric at anholt.net>
>
> The CLKT register contains at poweron 0x40, which at our typical 100kHz
> bus rate means .64ms. But there is no specified limit to how long devices
> should be able to stretch the clocks, so just disable the timeout. We
> still have a timeout wrapping the entire transfer.
>
> Signed-off-by: Eric Anholt <eric at anholt.net>
> Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
> ---
> Hi,
> just like "i2c: bcm2835: Set up the rising/falling edge delays" this is a
> outstanding bugfix. Unfortunately i only have I2C slaves, which doesn't
> stretch the clock. So test feedback is very welcome.
I also didn't have any particular devices that this fixed. It was just
an issue that came up in a previous discussion of clock stretching.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180226/0b6ffd48/attachment.sig>
More information about the linux-arm-kernel
mailing list