Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp846104pxb; Thu, 28 Jan 2021 01:26:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuXOXqN5Py9PrkKWTEsVCTFZNQu3c9ftbURmYouP+HpNL2HuCJlSuBZBri431xa5bOTtHx X-Received: by 2002:aa7:d603:: with SMTP id c3mr12805638edr.337.1611825984659; Thu, 28 Jan 2021 01:26:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611825984; cv=none; d=google.com; s=arc-20160816; b=GRSY7IftfgYHXUQbMs6dLDRtmlVOjdiqrgoYxQ0/hqAoEko4M04HkRtcWfQVQi9FEg 0pDsoW05xtEnUa6vuhifMlVYzYUoCPnG9y9lf7S7CVI8qdBlSTMMInH85pT/Cezg2229 MxvUom4AQxB4u6Olpy3q10MxjLvJhN1l5FTN18WeGv0d6jCFQ/dp1VZMMWqNmDiaw9zz Fs0bUEo0+Gdb4SNVZ8pGEOLsLPaIGH0eBMdqyNo5tUMwlH2rq1YIsSubjzXBnV8G4WMy cS0nzZJ7j4xAEJl7OjdKk1+u7vyepsKptwXZJ6eP7lf9C9v/WShZ/miThNu/UibNjbM4 TrAg== 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; bh=ByskvkX2WZ2lshpcdt7I6VMgLC3Xn7jlQj4BgNHg6hM=; b=i5krjA5FZvmRgJnJz40j/HWrZs4OV6LQr/u6dOQM8LFeev873wLuJfA/q7xtCm/WWC vITY2hlCi736UbCIlU2iriSSRLPqWciz+OEbr264ukCzpnN7eDXT2EY1vGxvAoqF/mEd dWdOTmmXcQjcdDym50jIbyhKjiTdOn8mFO1Htf8sQKfZmOvp3URCJ1O33XDRUSLROPuO oD5dvD9z+IHtphRZfEls5Ej/f/hJgYR5wTSbmTcI5OwhdQPUGnH8JJo8ZojQTLlqO8S/ m5rRRSJdiwhbDv7Vw2LMbhVxlfSvvSMUujGVa40rA0q0ahjHEbyUID4tzWwXTwMbFFz6 +OKw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si2559165edv.410.2021.01.28.01.25.59; Thu, 28 Jan 2021 01:26:24 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232532AbhA1JZB (ORCPT + 99 others); Thu, 28 Jan 2021 04:25:01 -0500 Received: from sauhun.de ([88.99.104.3]:40836 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232468AbhA1JVb (ORCPT ); Thu, 28 Jan 2021 04:21:31 -0500 Received: from localhost (p54b33782.dip0.t-ipconnect.de [84.179.55.130]) by pokefinder.org (Postfix) with ESMTPSA id 354292C04D8; Thu, 28 Jan 2021 10:20:49 +0100 (CET) Date: Thu, 28 Jan 2021 10:20:48 +0100 From: Wolfram Sang To: Kevin Herbert Cc: Oleksij Rempel , Biwen Li , Leo Li , linux@rempel-privat.de, kernel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, Aisheng Dong , Clark Wang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Jiafei Pan , Xiaobo Xie , linux-arm-kernel@lists.infradead.org, Biwen Li Subject: Re: [PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts Message-ID: <20210128092048.GK963@ninjato> References: <20201222194850.2274527-1-kph@platinasystems.com> <20210108080521.dzm2gczd3d2ygb5y@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Xsn3knLL3qrmRbVI" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Xsn3knLL3qrmRbVI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 14, 2021 at 05:27:11PM -0800, Kevin Herbert wrote: > The loop sends either one or two events to the slave driver. If the > state is I2C_SLAVE_READ_REQUESTED, we synthesize the > I2C_SLAVE_READ_PROCESSED event, and then our state becomes > I2C_SLAVE_READ_PROCESSED. In all other states, we transition to > I2C_SLAVE_STOP and exit the loop. >=20 > It is not a busy loop at all. It is calling the callback handler (that > already expects to be in IRQ context) one or two times, and then it > exits the loop. Oleksij, does this answer your question? --Xsn3knLL3qrmRbVI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmASgfAACgkQFA3kzBSg KbapWw/9EQprHfUvjk3btzBRIJmgaHJjdoVMhcAEEF6kZpyXAwMEHZGeczR706yH mTy4tF6KMirsZIfGk8GMI22xirN4ztEH+eHbr+AdbKhgj4Fu4GmJiYu2mm29Ds9b 5pYigwi/rFNl+BwNZgHp92/G0EC975imGZ2NHM6qyROi2al0AkD99K8GY//XycwB 1m8pvZPVF6sBend7u952/OOnHLkxMf9gu7T1SyTplTcDYT+YWcMrTy4dU2gDo50Q o9IO2RRSf6rJdzjCdxFK0yR9coGg89SEvnmzb+y8ZrLCWRTj2Lyt99zZIzIFnE4E Tb9on2LtVVXVVtGr3ZefTzow5g0RdkfKa/LN67Z3MiFJGdeEe9mx8lDpzPkqHRxD n4N6cp+8GRJsLQ+GwkmCk6zSVBHksSF3Spke1x4qhlvvbbneePdjxD665ImeoZdA hOdH2ePT7WU0QDcfmzGl5CX3GNHftoDi6ew0lbqeCE/6zXoLwa/bRnOBDnPgc2+k fEbO1Dt4MJMClhaTd06tF9rBSbma/bfjt9MsuEuUeASXKpfVsMZzrhMaEHmpeE16 AZknjCujTeHC59tzDi6+nQJYzdCP63O7pOW3+8Zd4K+rPKIubdIO61AM31Anoyit SeZUR4jtMlevXG1Ypo4/FB9Tx99RZ1qYea2ddadFeTuL7+XZXnc= =eCtP -----END PGP SIGNATURE----- --Xsn3knLL3qrmRbVI--