Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756770Ab3FGQZK (ORCPT ); Fri, 7 Jun 2013 12:25:10 -0400 Received: from mail.free-electrons.com ([94.23.35.102]:50462 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754584Ab3FGQZF (ORCPT ); Fri, 7 Jun 2013 12:25:05 -0400 Date: Fri, 7 Jun 2013 18:25:00 +0200 From: Thomas Petazzoni To: Gregory CLEMENT Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Ezequiel Garcia , Sebastian Hesselbarth , linux-arm-kernel@lists.infradead.org, Jason Cooper , Andrew Lunn , Nicolas Pitre , Lior Amsalem , Maen Suleiman , Tawfik Bayouk , Shadi Ammouri , Eran Ben-Avi , Yehuda Yitschak , Nadav Haklai , Ike Pan , Chris Van Hoof , Dan Frazier , Leif Lindholm , Jon Masters , David Marlin , linux-kernel@vger.kernel.org, Zbigniew Bodek Subject: Re: [PATCH 1/2] i2c-mv64xxx: Fix timing issue on Armada XP (errata FE-8471889) Message-ID: <20130607182500.10593e73@skate> In-Reply-To: <1370620140-17177-2-git-send-email-gregory.clement@free-electrons.com> References: <1370620140-17177-1-git-send-email-gregory.clement@free-electrons.com> <1370620140-17177-2-git-send-email-gregory.clement@free-electrons.com> Organization: Free Electrons X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.17; x86_64-pc-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 Content-Length: 944 Lines: 34 Dear Gregory CLEMENT, On Fri, 7 Jun 2013 17:48:59 +0200, Gregory CLEMENT wrote: > +/* > + * 5us delay in order to avoid repeated start > + * timing violation on Armada XP SoC. > + */ > +static int mv64xxx_i2c_errata_delay; This should probably be a per-I2C controller variable, i.e in mv64xxx_i2c_data. > + if (!mv64xxx_i2c_errata_delay && > + of_machine_is_compatible("marvell,armadaxp")) > + mv64xxx_i2c_errata_delay = 1; I am wondering whether it should be done this way, or using a separate DT property. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- 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/