From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758130AbdJMN3o (ORCPT ); Fri, 13 Oct 2017 09:29:44 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:51882 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753460AbdJMN3m (ORCPT ); Fri, 13 Oct 2017 09:29:42 -0400 Date: Fri, 13 Oct 2017 14:29:35 +0100 From: Alan Cox To: Peter Rosin Cc: Ludovic Desroches , "linux-kernel@vger.kernel.org" , "linux-i2c@vger.kernel.org" Subject: Re: Sluggish AT91 I2C driver causes SMBus timeouts Message-ID: <20171013142935.14ef302e@alans-desktop> In-Reply-To: <3d83fd8b-ade9-da10-3364-2afefa2e90af@axentia.se> References: <3d83fd8b-ade9-da10-3364-2afefa2e90af@axentia.se> Organization: Intel Corporation X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Linux v4.13. If your force the transfer to PIO does it behave ? Does the controller in fact need to siwtch to PIO for SMBUS ? Alan