]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: at91: sama5d3: reduce TWI internal clock frequency
authorLudovic Desroches <ludovic.desroches@atmel.com>
Fri, 22 Nov 2013 16:08:43 +0000 (17:08 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 2 Dec 2013 13:14:42 +0000 (14:14 +0100)
commit2d3949f5c762b1616b2245bd4281da1a12a7443a
tree133061595c50da263866003aca05cdccacc46576
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
ARM: at91: sama5d3: reduce TWI internal clock frequency

With some devices, transfer hangs during I2C frame transmission. This issue
disappears when reducing the internal frequency of the TWI IP. Even if it is
indicated that internal clock max frequency is 66MHz, it seems we have
oversampling on I2C signals making TWI believe that a transfer in progress
is done.

This fix has no impact on the I2C bus frequency.

Cc: <stable@vger.kernel.org> #3.10+
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/sama5d3.c