Received: by 10.223.185.116 with SMTP id b49csp4726878wrg; Tue, 27 Feb 2018 01:19:55 -0800 (PST) X-Google-Smtp-Source: AG47ELuggGZhQEYMxe6OhJgYD1h9cKO9orr+0MSdXn+NuqnFo+HZb6jBk1XNOJyADZ3Yx1Bq1ybC X-Received: by 2002:a17:902:6b:: with SMTP id 98-v6mr6833025pla.403.1519723195059; Tue, 27 Feb 2018 01:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519723195; cv=none; d=google.com; s=arc-20160816; b=BHs+hJ5NWKiktUSCDbvqQoEu/WhWJx2cHg0uUyQM3u3Etsir4Y5yI0OzwhUy5NHFga LV3k2B1wni8X1P5KVqy8FW1YFphsMcc76jt9Mvgk7r2U9PTug4f9g9tpgJ3ysQhfPKkc yADNMTxeR62+4GX6uYhArqbrGkhPSyjMynzDjuCSCOEtY5d6+2bLN3dnTcWvbm2yk12n z9xLM+J7j8Kuq2359beeqj4sQ2qIlXOxx2ONpGbYrFAkVi/5Nw8oWa32TckF3QpnzaaL FBqxoQSXX7YfSyoULJxnLb+1DNl+dt4k5JDjRl2Lu/lLIKqBu/oFClTPnu8r3/9EhFRE xqkg== 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:arc-authentication-results; bh=UQT2nH0KWhB5XbDWiRQtEU1Q2OZcBlRB3LraRHEJNJU=; b=mCsigCdMekDyOmqjwJe9h0oIfKgCotBSeVkEFRk9SMkkpnq2qGQA4n7o+dfBHduZDZ Mt3uovTefUTVpcFbWcqz0e0iAfmWVBFIVPZKQSQhuTj3LL/xhgncZdvetY0RFqwBGXM/ BiVHVYlBCAMFU0b2F486XfXXh61BLIvdh3D2dOdbT72hv2FJWQPcREX1zkbrqWs5YFvC ngJvbJFghjG2pd7V8nCiCVxKCaDUucSy9Z1jNCeKkufObb9AdmQKPq8M9PD/PZe0eYwp 7tbPntsU1LFUyPdhNWfhpbYTNMX8LLMbS5j6pDxFAYtIzrq8GcjMf4LKYX7Tt3DCwJUD 1WvA== 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 f10si6795100pge.494.2018.02.27.01.19.39; Tue, 27 Feb 2018 01:19:54 -0800 (PST) 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 S1752457AbeB0JEU (ORCPT + 99 others); Tue, 27 Feb 2018 04:04:20 -0500 Received: from www.zeus03.de ([194.117.254.33]:42490 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752330AbeB0JER (ORCPT ); Tue, 27 Feb 2018 04:04:17 -0500 Received: (qmail 3620 invoked from network); 27 Feb 2018 10:04:16 +0100 Received: from p200300cf5bcac700021de0fffea0c865.dip0.t-ipconnect.de (HELO localhost) (l3s3148p1@2003:cf:5bca:c700:21d:e0ff:fea0:c865) by mail.zeus03.de with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 27 Feb 2018 10:04:16 +0100 Date: Tue, 27 Feb 2018 10:04:16 +0100 From: Wolfram Sang To: George Cherian Cc: George Cherian , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH 4/4] i2c: xlp9xx: Check for Bus state after every transfer Message-ID: <20180227090416.gxgof6fyzdeshtmf@katana> References: <1516253964-4615-1-git-send-email-george.cherian@cavium.com> <1516253964-4615-4-git-send-email-george.cherian@cavium.com> <20180226202248.ej3bt5o7sam6qljv@ninjato> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="62qsndw2bhkctbqb" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --62qsndw2bhkctbqb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2018 at 10:30:31AM +0530, George Cherian wrote: > Hi Wolfram, >=20 > Thanks for the review. >=20 > On 02/27/2018 01:52 AM, Wolfram Sang wrote: > >=20 > > On Thu, Jan 18, 2018 at 05:39:24AM +0000, George Cherian wrote: > > > I2C bus enters the STOP condition after the DATA_DONE interrupt is ra= ised. > > > Essentially the driver should be checking the bus state before sending > > > the next transaction. > >=20 > > Yes. > >=20 > > > In case the next transaction is initiated while the > > > bus is busy, the prior transactions stop condition is not achieved. > >=20 > > I didn't fully get why you can't check the BUSY bit and wait a little > > just before you push out the next message? > Yes, I am checking for the BUSY bit and looping. Yes, but *after* the STOP, not *before* the next message. I haven't fully understood why you don't do this before the next message is about to be sent. That might save you some busy looping, or? --62qsndw2bhkctbqb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlqVHw8ACgkQFA3kzBSg KbZEog//QeyPOdwl0exgfBrWmyynZjc4DbREIDnMQzcQmOTUuWAB3zRdg/pKIXM8 HwJAE4C8yvj7De3PjYiG3Wz0LLTtyZv8SdqYMv+vVKn63yJjotgL1K8DagBJQDg/ EtQfk3Jq7ZsHb8JT8CUe5LPWTm/W80IBUWf4t0xdSsCtO6GsAwWnY/c2Cd1YUjtt x98Uet3ilkF6jDlb/Kp4307NFZmAzWMJujGhG5ivPcI9H53lQffHxu1GU/BXw/sA EdqlN9KKTwqDmTTtWZq5amTgoE2E+XoyeLwhXhWnasKYw/Fx7bzRjKuWUEPeCvqN UW4nRVIo2e0TdJDex6sG1kS+5QYt1VjqDJEH65sckE7gHmyCKLF2yqZcyIjHqLqY 88cHlwroxNszpN7JPEYMjdXK5fBuv5Efd7NJVT3hlvtTpKICwtX66fy2zRmGFK3F cJ00MvfdfeWrzapZEymuhD6rBlw4eVIB2TCn7uqhPmAk9i7sRTS2bhBEAiH/7Bpu Ksd4Y7jMqMRxdqpfmz80Y68uMkaVRnb4RzeIPCMegTO4GyP188pbLKnitv9L8kEr whWNXbtcQFHskg+/SlgkiRciSRa6OKe37NuRsIA54Cwf4Z2qJ3tg6NkqoFEEFYni jVvup3G9TE64fnrzdwzg1kjZNKnQRwpHk3PPEPrKnQWqkmyDi3U= =SFGK -----END PGP SIGNATURE----- --62qsndw2bhkctbqb--