Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3644968ybg; Fri, 25 Oct 2019 07:03:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5lKORqpPlQ/JZC4vpXQMK5LPciOocF13qyYv6WzdWZw/zkZtLKlok1wn8ePcawgTVaAcT X-Received: by 2002:adf:f84f:: with SMTP id d15mr3320146wrq.112.1572012202766; Fri, 25 Oct 2019 07:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572012202; cv=none; d=google.com; s=arc-20160816; b=LHbu4PBF0NPDwHe/sTw8Pg+CBBNHt8rUPOrLuBjiCLrxzR6QNBQu3sgAB+Zj7HtqqM e4IiQr1FC5FGb/IsKwMiSiA1iL2BfQP4HMZlkQeHSMK7+4Dwi9Gv6um39PD/ii9983SD 3TuswyCGPwILP0c5qbdL5OXQEJ0f9IRtN2hPlrr4HrXd/rY4qOMVyjlKP+NDHcd9zRdp KL+Zc5zwnotVElkdQ6hE4ugUOrQlU3Z5p9MnKv/pAz4tehhP8vUVOnppVHVWjMqZkhoC LE9pX8yzqLzY9UrI3qmfrP8Cx4fIexVScSX43yzVV5iD81RrCxvooiAWIYcBWuDOTAaB 7QJg== 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:cc :to:from:date; bh=YdM6M6MC2yOX80mv7j8NIqE0lkoE6HaRO6zkeDaL+M0=; b=gk9nTnjN0UvKqyvYarIo0IcOVrN7wQRFtaBpb1RwY/Cl+RR2KjsJ81ej7OsPGLlEX7 WQfvnSobOq1dBGz2gSxMqQ8AgLNmt0wprP+9t3qLyne+I0DugZbppumjbdFxfX2sCeey zQZAjbNzV+9tRSeCLr9XNWyW1uA8pYlH4tB9QQ8wN46jxOHYjZ1haCJLUpDc4sVDYn0z xzWYAjzgyayObDbGWr8RzRg3VqphD22i3yKJZ7PytdVSdbIny6relXDUvwDYVcIR/mov rLWkAIGMriJdbkp/0qWxBMwJ+HQWyLDJCkgNfVUSAXU3dlvdRR7NMkeCb8OsxqsUziM/ CCjg== 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 j12si1307566eda.406.2019.10.25.07.02.52; Fri, 25 Oct 2019 07:03:22 -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 S2409581AbfJXPHa (ORCPT + 99 others); Thu, 24 Oct 2019 11:07:30 -0400 Received: from sauhun.de ([88.99.104.3]:41692 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407327AbfJXPHa (ORCPT ); Thu, 24 Oct 2019 11:07:30 -0400 Received: from localhost (x4d0d4399.dyn.telefonica.de [77.13.67.153]) by pokefinder.org (Postfix) with ESMTPSA id AB61C2C011D; Thu, 24 Oct 2019 17:07:27 +0200 (CEST) Date: Thu, 24 Oct 2019 17:07:26 +0200 From: Wolfram Sang To: Codrin.Ciubotariu@microchip.com Cc: kamel.bouhara@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, Ludovic.Desroches@microchip.com, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com Subject: Re: [PATCH 2/4] i2c: at91: implement i2c bus recovery Message-ID: <20191024150726.GA1120@kunai> References: <20191002144658.7718-1-kamel.bouhara@bootlin.com> <20191002144658.7718-3-kamel.bouhara@bootlin.com> <20191021202044.GB3607@kunai> <724d3470-0561-1b3f-c826-bc16c74a8c0a@bootlin.com> <1e70ae35-052b-67cc-27c4-1077c211efd0@microchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <1e70ae35-052b-67cc-27c4-1077c211efd0@microchip.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > So at the beginning of a new transfer, we should check if SDA (or SCL?)= =20 > is low and, if it's true, only then we should try recover the bus. Yes, this is the proper time to do it. Remember, I2C does not define a timeout. --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl2xvikACgkQFA3kzBSg KbY2xw/9FIdBm3lKLqDZpmKjcsD3wcKioeBhtRCD82gnXZgkMqSlbbQQRf8y8ZKe KAun1rTcj+rHtvzH20i+alDXQzChwwJAS9ZxORyWPurh0sRTwGDH5z8Bl1Sm8kUp 6dMDTGNrWwFGV0iQmHzF17n545X7ho/QHlTmpQi23SxS0sOJGPz5D8drDlWS0eBq MFrDt9jqeCRV2u68gntAWoMoTHUr5klUizS+p8Jrt3yMIfriH1uPc3VGa5xuuLVI al5YrR9bB0zgYZatgoxnZ6Q5KkInb1DkZIZNRmJP+4QoTMo97HHW+ZrsNJUD9mw5 Uuoh2NTgVGkbuCXRDzVsDOoEEMVM1qmmZxNfeXPtIO6jWbZID8ZaWbsgAfV4SXnQ eeeZkH8ZuO19KhSeS6/El283JSMuvl89njtXd7l6/hcY41ndFOkjtjEDs/7Ed7RJ SB0dnavo3zYhzyMJ1IjhtIEIc3+cRZRy7HmBxgovyuEYYCF+re6I8HLjvo2/aYuC +s7J45zgY/9lqcnJRMz6iL7yIAFyoptYVVq5V065QWCyeKDNmVNBg3XP24ETd879 060Xp1xPeZQU/Pe6D+j7fzfYDyg94Hi9a7P7TT4ZwatTm8LCObi5g7FCCuq5OQPM eY9Z7YHvo7yo4rYM1tqbAoYA0ZUxXj9IxGI8uIr0L3lBjLIJAI0= =cVZT -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--