[PATCH v2 0/2] Sluggish AT91 I2C driver causes SMBus timeouts

2017-11-27 Thread Peter Rosin
Hi! [I was waiting for a comment from Rob for the initial submission, but that never came and I nearly forgot. Instead of pinging again, I'm resubmitting with the review comment from Guenter fixed, hoping that Rob will react this time.] This is a workaround for a problem in the AT91 I2C adapt

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-31 Thread Ludovic Desroches
Hi Peter, On Wed, Oct 25, 2017 at 11:40:50PM +0200, Peter Rosin wrote: > Hi Ludovic, > > On 2017-10-17 09:58, Ludovic Desroches wrote: > > Hi Peter, > > > > On Fri, Oct 13, 2017 at 05:01:04PM +0200, Peter Rosin wrote: > >> On 2017-10-13 15:29, Alan Cox wrote: > >>> On Thu, 12 Oct 2017 13:35:17 +

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-25 Thread Peter Rosin
Hi Ludovic, On 2017-10-17 09:58, Ludovic Desroches wrote: > Hi Peter, > > On Fri, Oct 13, 2017 at 05:01:04PM +0200, Peter Rosin wrote: >> On 2017-10-13 15:29, Alan Cox wrote: >>> On Thu, 12 Oct 2017 13:35:17 +0200 >>> Peter Rosin wrote: >>> Hi! I have encountered an "interesting"

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-17 Thread Ludovic Desroches
Hi Peter, On Fri, Oct 13, 2017 at 05:01:04PM +0200, Peter Rosin wrote: > On 2017-10-13 15:29, Alan Cox wrote: > > On Thu, 12 Oct 2017 13:35:17 +0200 > > Peter Rosin wrote: > > > >> Hi! > >> > >> I have encountered an "interesting" bug. It silently corrupts data > >> and is generally nasty... > >

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-13 Thread Peter Rosin
On 2017-10-13 15:29, Alan Cox wrote: > On Thu, 12 Oct 2017 13:35:17 +0200 > Peter Rosin wrote: > >> Hi! >> >> I have encountered an "interesting" bug. It silently corrupts data >> and is generally nasty... >> >> On an I2C bus, driven by the at91 driver and DMA (an Atmel >> sama5d31 chip), I have

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-13 Thread Alan Cox
On Thu, 12 Oct 2017 13:35:17 +0200 Peter Rosin wrote: > Hi! > > I have encountered an "interesting" bug. It silently corrupts data > and is generally nasty... > > On an I2C bus, driven by the at91 driver and DMA (an Atmel > sama5d31 chip), I have an 256 byte eeprom (NXP SE97BTP). I'm using > Li

[PATCH 0/2] Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-13 Thread Peter Rosin
Hi! This is a workaround for a problem in the AT91 I2C adapter driver (or perhaps the hardware?) when it drives the TWI peripheral on an Atmel sama5d3 chip as I2C. Apparently, that driver can delay in excess of 100 ms just after the transfer of the 7th bit of the last byte. When it does this the

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-12 Thread Guenter Roeck
On 10/12/2017 02:19 PM, Peter Rosin wrote: On 2017-10-12 16:42, Guenter Roeck wrote: On 10/12/2017 07:32 AM, Peter Rosin wrote: On 2017-10-12 13:35, Peter Rosin wrote: Hi! I have encountered an "interesting" bug. It silently corrupts data and is generally nasty... On an I2C bus, driven by th

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-12 Thread Peter Rosin
On 2017-10-12 16:42, Guenter Roeck wrote: > On 10/12/2017 07:32 AM, Peter Rosin wrote: >> On 2017-10-12 13:35, Peter Rosin wrote: >>> Hi! >>> >>> I have encountered an "interesting" bug. It silently corrupts data >>> and is generally nasty... >>> >>> On an I2C bus, driven by the at91 driver and DMA

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-12 Thread Guenter Roeck
On 10/12/2017 07:32 AM, Peter Rosin wrote: On 2017-10-12 13:35, Peter Rosin wrote: Hi! I have encountered an "interesting" bug. It silently corrupts data and is generally nasty... On an I2C bus, driven by the at91 driver and DMA (an Atmel sama5d31 chip), I have an 256 byte eeprom (NXP SE97BTP)

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-12 Thread Peter Rosin
On 2017-10-12 13:35, Peter Rosin wrote: > Hi! > > I have encountered an "interesting" bug. It silently corrupts data > and is generally nasty... > > On an I2C bus, driven by the at91 driver and DMA (an Atmel > sama5d31 chip), I have an 256 byte eeprom (NXP SE97BTP). I'm using > Linux v4.13. > >

Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-12 Thread Peter Rosin
Hi! I have encountered an "interesting" bug. It silently corrupts data and is generally nasty... On an I2C bus, driven by the at91 driver and DMA (an Atmel sama5d31 chip), I have an 256 byte eeprom (NXP SE97BTP). I'm using Linux v4.13. The at24 driver for the eeprom detects that the I2C adapter