[PATCH] i2c: bcm2835: Avoid clock stretching timeouts

Wolfram Sang wsa at the-dreams.de
Mon Feb 7 07:08:53 PST 2022


On Fri, Feb 23, 2018 at 10:42:31PM +0100, Stefan Wahren wrote:
> 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>

Okay, it has been years but the issue came up again [1] so finally
applied to for-current with stable added, thanks!

[1] http://patchwork.ozlabs.org/project/linux-i2c/patch/20220117102504.90585-1-iivanov@suse.de/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20220207/c4bf6375/attachment.sig>


More information about the linux-rpi-kernel mailing list