Google
  Web www.spinics.net

Re: TXCOMP timeout - AT91 TWI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


hi,

>  I recieve a TXCOMP timeout after doing some i2c transactions, it is not consistant (timeout sometimes happen after 50 transactions, sometimes after 2 or 3), and the debug log showed me, that I get a TXCOMP timeout 1st followed by the TXRDY, RXRDY timeout in the subsequent transactions.

If you read through the archives of the arm-linux-kernel mailing list
you will see that there are a number of hardware issues with Atmel's
TWI controller.
Basically because it does not have a FIFO or PDC support, any slight
delay in writing data to the transmit register causes the controller
to automatically send a STOP and complete the transfer.


>  Also how do I resolve the issue ?>
>  I use a 2.6.22 kernel with at91sam9261ek_defconfig and a patch for at91 (2.6.22-at91.patch) provided in linux4sam.org.

In newer kernel versions we have switched over to using a bit-banging
driver for I2C transfers on AT91 platforms.
I recommend you upgrade to a newer kernel version and switch over to
the I2C_GPIO driver.


Regards,
  Andrew Victor

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Site Home]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux ARM Kernel]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Tools]     [DDR & Rambus]     [Monitors]

Powered by Linux

Google PageRank Checking tool