Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3016158pxu; Sat, 10 Oct 2020 16:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8qzwkZSD4axv0956J29TTssi8zzEMnqJGbBGFmtBF69SaUOHJtN31IhSuh7jezRrh7ipS X-Received: by 2002:aa7:d781:: with SMTP id s1mr6711167edq.102.1602371560421; Sat, 10 Oct 2020 16:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602371560; cv=none; d=google.com; s=arc-20160816; b=fP9egag4tlj8v9rLKGbjxcqw29XxS0g60Yd17ndix8/gbvx1zenQw7xs3AHSnkLKBo 9mnUDXLELbEuqBMVxju7EgV0Q0uJtDYDG681cll29jT/dpV/IUMNFERueVjzKj+HIfmU NwCVummEN6eeQRy1D2OM2mBy9EdzERe7HLMgHONSm5uKOyh+lsD1PSWNettXKfDp7V7d HWXE15pADLin5W7ICRF7jNShM5tzQPhhj4sIRdD4Q/6B5GpZy5uj42uDLWk3/ngpWoJS oMI84SK0IQF966KX9Un0PF02XT1TJ72YSwQW0AkJeh4iZjZ7xO5Q3Qv0eTFLhmZi+HX6 cqsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lF3n0s6rjBRiDs4YPaVhbKVI1z7ikl+0j2Cch56hK0I=; b=pYc7pSpZBR933/P46k109YvdUzQLd6VJt/EBjsT5UEtnLhQI0Ok5DpEgEHemL01Baf lM1W8AaILNUVAc29J9SRmVy01WlyH+NV2hvCpUxgo22isp9VmfF6tBgqMDtICwcd3wXK hdfLyHu28Mj96eC+bMRoRWKUfYqJgAkHCtODDsUyAAjQpCqQYMAZ8uFkLN1NINxfRb90 lEMqqx+3dosz8YADZd+/8icWxnt+pQXwqLjnvQTxkNkcoHBv4NBqRNKheO5YiOGUNm33 qyAts4kq128Y1rdicg231XZacW+INMSv16NrKlD7Le6bTR1/X3d5HfwDcwVtbDkhi2wW 6yKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0z0W8fNw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si8986973ejw.494.2020.10.10.16.12.17; Sat, 10 Oct 2020 16:12:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0z0W8fNw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390839AbgJJW7Z (ORCPT + 99 others); Sat, 10 Oct 2020 18:59:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:57040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732646AbgJJTyp (ORCPT ); Sat, 10 Oct 2020 15:54:45 -0400 Received: from localhost (p5486c996.dip0.t-ipconnect.de [84.134.201.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4FAFF221FC; Sat, 10 Oct 2020 11:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602328185; bh=uQHAiDa6UwVzkeCNcXIht55Jnp6noC/hcJNuIPqmHCI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0z0W8fNw4fEhhciSCnPL+grc2lVTijBpwyFLBjDvdKH1g6Hsfviwtw9WzcLRa8erQ iz5uYhPXdUa49k98N/TQOkCKLoULKVqwnSWpSLfxlJLrkTynwPe1yrBx+nC9AYyhWL 80JkjDpLcPpXIy8QCbKnQl0xJqEPFoxyRL0Pj0lM= Date: Sat, 10 Oct 2020 13:09:37 +0200 From: Wolfram Sang To: Christian Eggers Cc: Oleksij Rempel , Oleksij Rempel , Shawn Guo , Sascha Hauer , Fabio Estevam , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , David Laight , Pengutronix Kernel Team , NXP Linux Team , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , stable@vger.kernel.org Subject: Re: [PATCH v6 3/3] i2c: imx: Don't generate STOP condition if arbitration has been lost Message-ID: <20201010110937.GD4669@ninjato> References: <20201009110320.20832-1-ceggers@arri.de> <20201009110320.20832-4-ceggers@arri.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Km1U/tdNT/EmXiR1" Content-Disposition: inline In-Reply-To: <20201009110320.20832-4-ceggers@arri.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Km1U/tdNT/EmXiR1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 09, 2020 at 01:03:20PM +0200, Christian Eggers wrote: > If arbitration is lost, the master automatically changes to slave mode. > I2SR_IBB may or may not be reset by hardware. Raising a STOP condition > by resetting I2CR_MSTA has no effect and will not clear I2SR_IBB. >=20 > So calling i2c_imx_bus_busy() is not required and would busy-wait until > timeout. >=20 > Signed-off-by: Christian Eggers > Tested (not extensively) on Vybrid VF500 (Toradex VF50): > Tested-by: Krzysztof Kozlowski > Acked-by: Oleksij Rempel > Cc: stable@vger.kernel.org # Requires trivial backporting, simple remove > # the 3rd argument from the calls to > # i2c_imx_bus_busy(). Applied to for-next, thanks! --Km1U/tdNT/EmXiR1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl+BlnEACgkQFA3kzBSg KbZqtw//b4hEFkfLFb1etf0/EeQm4uXhVbUaXFusSVs5rfpiSQo73CrMk4DoL2uv K3QyXs4hXYVx9n976MRbAHGF3Epo74HnVyij6RxIgdQYLzmYHdy5XnDRJCvFFZIm nQzSPaQ67CNOgxn4+r7tpFeX9Ap094ewIpms/OjJbv0JKDuBWuoBf52e+UAuqtpw FnfKMJtA6zsC/cbWW1O7kwJylxVdExChZ2x+yByeDV+p4y+M4xL6dUGkz13uVorX OTxnCfQgsgouhwrxC+cWvb7y37hbu4zGwmTjTsKHYSR/IhQ/NRCDq6x94nXauYT6 CpaqqikT+aqeq6reO5wCd/ci3IiZOlAwAXBQdsaJav0N9dsvzxOetggM/uXAvkIH C+HDyMiZJib2pFGkdmmF4P+mdgmqCuXwWdvnOO2mqnk17VHva8js/FhJPgW84bA+ O4bMbofkVJNeOLTnXvnikVwXNVz02C/XUiAPq4PEhMPWNGLgaoHuBngDwghxQR2K 8GaGrQ968GAkimnTsMl8wIsimxUkFiwGTxHKm6p1cs4Ekmr14aeiVmXOmFzRKmLa aJQ/uy/U+mo+YMoBobROlomjAZP/GfplxgWtCIu79apQg6fZZ5ivnG8XEG/CD3zX KS9MkYPdTSd7fXqBMUkIoIUa+sllE87Yr6prvHiRaxrAPVf2tKg= =+4FV -----END PGP SIGNATURE----- --Km1U/tdNT/EmXiR1--