Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp971408ybp; Wed, 9 Oct 2019 07:05:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0IVUiEN6hZ9fwScLj3YgBjm3VgrPrlkjYbTx/AeGApNYliTsycsmp0rlWZvgfNKSF+pKl X-Received: by 2002:a05:6402:514:: with SMTP id m20mr3190784edv.187.1570629910553; Wed, 09 Oct 2019 07:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570629910; cv=none; d=google.com; s=arc-20160816; b=X6XqbO3iwu/2tQIvQAUHvNOqnKkrx9BNu479utnBsDiEN/vgdNAAtw5iJnzwydwogF WTLKYLxPpHMbV9AsnPxCRsJKAz8gbJWjyoveQRcNrnArupt/k88lzyMPRxNiI9LR8+Lb baAiGdKSQjspvX8F8H0IK9U5eRmjjZaPpRJ8SROi58GVjdB0I+rduciqoI+BOeYhVlh/ UzHFxaWzk9YSm60J+Ap55VsB6ClAa1W/9oLxsVQBvDm7V5ipIHXv5ZA5CDba6/HJH+mG uIEl3FNMDa4Yw5+cPgxdXPZYhQ0IjxAO2Jvb1nSXOLvqjWrTiBUOZe11sYSOPz4hLKGQ CBtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date; bh=Ow7FKP48u/Nj4L2nnLluYyDI71TFdYMxoRK4Fj73NE8=; b=rs4NXVLqt+P5/44mPCo3hsupfTc03DVUq7pwrXM20EpnEy1zgwr0vAdvF9zkBsSbr+ iXPxQPo4TyUBVgHd3Bvj/Nh76poCIL+RNsv+XuFF5C7iJ73WK1gFS8a15uZRCaLw1ly4 ZVxj1/1exvmltKZX4z3/EwOSyHY1KVVQMm51tA1/oSKNFZGTJkP2rKyATR6/AFh2iwKG lIsYEf+6hh0JSfgYd9Z4sjVaTWSXvliUluQw7pKAFg/ugqQyp/YD1o9EJKH6mwstutRw ykywe2SeKISR2WpXnlVa5JyLauBqDBCJZ3jILG9UG34TdWDOyTTpPjRbsvK632vMpjmK VAjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be13si1236991edb.362.2019.10.09.07.04.32; Wed, 09 Oct 2019 07:05:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731083AbfJIOBt (ORCPT + 99 others); Wed, 9 Oct 2019 10:01:49 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:36921 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbfJIOBt (ORCPT ); Wed, 9 Oct 2019 10:01:49 -0400 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id AA1DB200010; Wed, 9 Oct 2019 14:01:45 +0000 (UTC) Date: Wed, 9 Oct 2019 16:01:45 +0200 From: Alexandre Belloni To: Kamel Bouhara , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Ferre , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Thomas Petazzoni Subject: Re: [PATCH 2/4] i2c: at91: implement i2c bus recovery Message-ID: <20191009140145.GE4254@piout.net> References: <20191002144658.7718-1-kamel.bouhara@bootlin.com> <20191002144658.7718-3-kamel.bouhara@bootlin.com> <20191009135500.ufkxcemccwfcfys7@M43218.corp.atmel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191009135500.ufkxcemccwfcfys7@M43218.corp.atmel.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/2019 15:55:00+0200, Ludovic Desroches wrote: > On Wed, Oct 02, 2019 at 04:46:56PM +0200, Kamel Bouhara wrote: > > External E-Mail > > > > > > Implement i2c bus recovery when slaves devices might hold SDA low. > > In this case re-assign SCL/SDA to gpios and issue 9 dummy clock pulses > > until the slave release SDA. > > > > Hi Kamel, > > Thanks for adding this new feature. As I see patches only for sama5d3 and > sama5d4, I assume it has not been tested with a sama5d2, isn't it? > I there a point having it on sama5d2 as the controller already supports this feature? > I doubt it works with a sama5d2 because of the pinctrl. I also wonder if it can > work if we add .strict = true to pinmux_ops which is something plan for the > future... > I don't see why it wouldn't work with strict as this is switching muxing properly instead of using the pins for two functions at the same time. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com