Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1973323ybp; Wed, 9 Oct 2019 23:56:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyD7t/0gsZNyfBQlbmisxveUFHo5x4haXOIOYDt/JfQ4MLO7lBRD7UnD3IVxoV7fsOZhUze X-Received: by 2002:a17:906:2c5b:: with SMTP id f27mr6467385ejh.239.1570690601311; Wed, 09 Oct 2019 23:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570690601; cv=none; d=google.com; s=arc-20160816; b=RIGHtjjPRlSw2kFoJ6RmnTGDt0nEPyH6l020JT2WrZgP6GGqJLV2oc7q784wzLMKhe LOfpY6HyreFrMXej/4VuMxFNaCRa6TBDuFbtVX09lPU8ciGlMndVlQaNdyINWVo/sAAj SioaKuLvlkcyPcmi7EqftCSxfGdnaogGBUV/HdHhC9lO+PR9y5cqX1qkHq+e/rfVZefq GTHMcSxvUNJxn8izP+MqzhbvSi9gmg28xpzVT7putT9lGlQA4mViosFbfZ6lKojXL0jg fka+uubEM7guDRnHgxe3xN3/uVLPau5429i/BXocJbevelVFHqo09y9rLshmK6yiRJ1b VCxw== 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:mail-followup-to :message-id:subject:cc:to:from:date:ironport-sdr; bh=+qaVDRGjM1XC5IjQdVwixL92Fprd3F6araLeJfS4FlE=; b=lLzKMHFS0+f/0nYDwKVWfMAFucXxBxAXmpLKZHTMHN9gnrvEe0Iqa5nVnZsWSnA04v Dbhahe616kn0nX4VgNiJi8hU2mgKHn4FipAP6x5qwrfemLimMf0Nrr0HqFu3UV3j9EfE /ZfcOvhShx55zLfd/HsZ99HpzXtc04QZ5OxNDOHXMSuXCEyNlsnQarjgmVesMrKVubBT VjDSdUszGCNLnEO/45PT1Qw1M6R66P51VqzvsB8lPSGWQBvwCSTUeSD35IzCgsOJQxFy Dibc5JFPCe0DSuUcswzSpzBQ9p8AOBDZyZQlf+fNnujSEdIkMa9kxaPH/4QYxdX3UaSx CgNQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si2959593edj.43.2019.10.09.23.56.18; Wed, 09 Oct 2019 23:56:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732945AbfJJGyL (ORCPT + 99 others); Thu, 10 Oct 2019 02:54:11 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:51758 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727207AbfJJGyL (ORCPT ); Thu, 10 Oct 2019 02:54:11 -0400 Received-SPF: Pass (esa4.microchip.iphmx.com: domain of Ludovic.Desroches@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="Ludovic.Desroches@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa4.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa4.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Ludovic.Desroches@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: 56/nY0LiIN/XQ6ARaaD2NWSw2YJpxUgWH2WdPoN9k70jvh2TFLojEBQX4o6320lmoKeMed9Rpe GeAzg7PgNmmOPPDAkT0gn0+f18qBXoPv6L+HihKLNKChx3uswal27XjEq/ER5bwYgVQsAch3tZ Ga/xMHtPXCwrCtNIyHaeaS69ozV8Mk3/zF2sICBzVXRq/Im/JhvVuFwKJuqrOUu/7V+hD4Ec7h lwXsg7VHR2nQzdImqDFhhzh2DLsvBf76It9ZV6JTJcrfGfMbCqOo10VD00cYKVwgsrVfTcMQ9O pzY= X-IronPort-AV: E=Sophos;i="5.67,279,1566889200"; d="scan'208";a="51112714" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Oct 2019 23:54:10 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 9 Oct 2019 23:54:10 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Wed, 9 Oct 2019 23:54:09 -0700 Date: Thu, 10 Oct 2019 08:54:09 +0200 From: Ludovic Desroches To: Alexandre Belloni CC: Kamel Bouhara , Wolfram Sang , , , Nicolas Ferre , , , "Thomas Petazzoni" Subject: Re: [PATCH 2/4] i2c: at91: implement i2c bus recovery Message-ID: <20191010065408.y7i7aywdztgixv47@M43218.corp.atmel.com> Mail-Followup-To: Alexandre Belloni , 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 References: <20191002144658.7718-1-kamel.bouhara@bootlin.com> <20191002144658.7718-3-kamel.bouhara@bootlin.com> <20191009135500.ufkxcemccwfcfys7@M43218.corp.atmel.com> <20191009140145.GE4254@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20191009140145.GE4254@piout.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 09, 2019 at 04:01:47PM +0200, Alexandre Belloni wrote: > > 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? > Right, I was focused on pinctrl and forget we have this feature supported by the IP. > > 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. > Not sure devm_gpiod_get won't fail with strict. Ludovic