Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932229AbaKSOSq (ORCPT ); Wed, 19 Nov 2014 09:18:46 -0500 Received: from mga11.intel.com ([192.55.52.93]:64918 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932173AbaKSOSo (ORCPT ); Wed, 19 Nov 2014 09:18:44 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="418675920" Date: Wed, 19 Nov 2014 16:18:34 +0200 From: Mika Westerberg To: Wolfram Sang Cc: Andrew Jackson , Andrew Morton , Baruch Siach , "Du, Wenkai" , Shinya Kuribayashi , Romain Baeriswyl , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Liviu Dudau , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH] i2c: designware: prevent early stop on TX FIFO empty Message-ID: <20141119141834.GJ1309@lahna.fi.intel.com> References: <545CB6C4.8010201@arm.com> <20141119092122.GC1439@katana> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141119092122.GC1439@katana> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 19, 2014 at 10:21:22AM +0100, Wolfram Sang wrote: > On Fri, Nov 07, 2014 at 12:10:44PM +0000, Andrew Jackson wrote: > > If the Designware core is configured with IC_EMPTYFIFO_HOLD_MASTER_EN > > set to zero, allowing the TX FIFO to become empty causes a STOP > > condition to be generated on the I2C bus. If the transmit FIFO > > threshold is set too high, an erroneous STOP condition can be > > generated on long transfers - particularly where the interrupt > > latency is extended. Makes sense to give some slack so that the interrupt handler is still able to fill the FIFO. > > > > Signed-off-by: Andrew Jackson > > Signed-off-by: Liviu Dudau > > So, what do other designware users think of this change (nice CC list > BTW, Andrew). Adding Mika, too. I quickly tested this on Haswell machine with touch screen connected to the I2C bus and it still works fine, so Tested-by: Mika Westerberg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/