Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4137349pxu; Wed, 9 Dec 2020 09:14:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJkDcmJZmeHDL3ud+MDqWcpHSJIAgSTjZRMv816Vj8CeBcbClCagXUKz4lIW19sumNc3Wf X-Received: by 2002:a17:906:3683:: with SMTP id a3mr2817718ejc.538.1607534099109; Wed, 09 Dec 2020 09:14:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607534099; cv=none; d=google.com; s=arc-20160816; b=C7zH/28A3QtqyOtv0FW7QPf9ghXIJQWtprkOG9ZTQJMGBXXKIEDw6cPP9a1ypzxU3d 2VU9hC8JER4tNzp54n3CuQzzdVvSBbMx0HZNs2FCT2B7X32O8zahqgB6/yUzozmpSUJk TXc+RkhrOWF/h+ye4hASy8JTAfMfAag1fpiTXFSbw75H4AzrS2v3XTMlSWqLWNc/XhOs HVQHWykG8Jj+2B7J+W2fss3mYMVadRlz122W1CLrSVv5QvhmKkSOATvv0YLd/wwtlEHO WVexeU0gPgN7u1kj1wb6XreRdnAAupzbyhqasQK2VBkpveRckSYNz55jd0+Qu19g90XS iGjA== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=SiYdBSuYTcPrs+aL+OzJ8CsQBxsAp6Az2icIvcOGMVI=; b=FfYYxhF5ZvAVD6y+c9JeiwZHHu5JlcXJ3Us/e7OBTPJ/Sm6Qd+QwLP2UT8GONbvlUS paFOORSgKAAMKfiw1bC03KZ2wlJVBRqj29j7X39IO1srWDtHoD6J/82MUBCCZnrywOKa OckJ6y60hHTfwbEbfmDg0rDomfB7jZ/Nacod11EVx3wKXs0CCYkRksaeXxdzDejz4Iz5 5e3DFvNAUDdeKTGHWEJ9+iiX8QRjruIQxU2K+UPSVQW/e5Avq2Hgwu3pMHd/pMGU8fyB x1TsbhQzNHazo2b9LDkho/3FI9fkprfbVSMcDCVaVBXTKoWSLos02NBX+aN/nOnJ6t4U pcuw== 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 x59si1193914edc.544.2020.12.09.09.14.36; Wed, 09 Dec 2020 09:14:59 -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 S1731105AbgLIRLP (ORCPT + 99 others); Wed, 9 Dec 2020 12:11:15 -0500 Received: from sauhun.de ([88.99.104.3]:59362 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732644AbgLIRKt (ORCPT ); Wed, 9 Dec 2020 12:10:49 -0500 Received: from localhost (p54b3328b.dip0.t-ipconnect.de [84.179.50.139]) by pokefinder.org (Postfix) with ESMTPSA id 763D22C056C; Wed, 9 Dec 2020 18:10:04 +0100 (CET) Date: Wed, 9 Dec 2020 18:09:48 +0100 From: Wolfram Sang To: Kevin Herbert Cc: Biwen Li , leoyang.li@nxp.com, linux@rempel-privat.de, kernel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, aisheng.dong@nxp.com, xiaoning.wang@nxp.com, o.rempel@pengutronix.de, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, jiafei.pan@nxp.com, xiaobo.xie@nxp.com, linux-arm-kernel@lists.infradead.org, Biwen Li Subject: Re: [v10] i2c: imx: support slave mode for imx I2C driver Message-ID: <20201209170948.GA2249@kunai> Mail-Followup-To: Wolfram Sang , Kevin Herbert , Biwen Li , leoyang.li@nxp.com, linux@rempel-privat.de, kernel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, aisheng.dong@nxp.com, xiaoning.wang@nxp.com, o.rempel@pengutronix.de, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, jiafei.pan@nxp.com, xiaobo.xie@nxp.com, linux-arm-kernel@lists.infradead.org, Biwen Li References: <20201111113255.28710-1-biwen.li@oss.nxp.com> <20201202151033.GC874@kunai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 09, 2020 at 09:03:50AM -0800, Kevin Herbert wrote: > What is the protocol for the I2C_SLAVE_STOP event? I am working on my own > backend, and I've only tried it with this i.mx driver, and I do not recei= ve > I2C_SLAVE_STOP at the end of every I2C transaction. It was my expectation > I'd receive this event at the end of every frame. In my testing, I've nev= er > received this event at all. >=20 > Where are the I2C registers on the i.mx documented? My board is an i.mx6s= x. Hmm, from a glimpse, it looks the STOP event is only sent after a write and not after a read? Does this match your findings? --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl/RBNcACgkQFA3kzBSg KbaJ6RAAsPJyZ/MTajnOltJDXCtbBT6yb5qWPfZdpA5WpP2cwsZPxmcGPzizkSDb nOKC61fPCtAxq2tG1wnpdKzzLqsVD/BA90Cq3UckfP5H7LAqfzUAGuemAr6nsWo5 8ZBUbvFYgig9gyl7FtAuR3fRXGv62zPfkJm9y9dCb8RxXpMNQB348OKzxar+hfoU njjwZNHBx9hachkRLocKub/hzfwk0QupYlTxEvwfMlTKGt1jFCPZCc1xN1fQpJZw z7hCP1QiNp0sItuO4EIfaakfAXI3sdWXP0/RqvLs1O9OZBuCRPDj1zoMClWmaVDE qT/9Fsf5ZweBrHcvmbUH90OUvMwLnxr4Lfd21rYRnSm6WWK+tNVbOnB/lRdbR7p2 tMjsz2WzawunVhjRp8Oxi1AozedyVqt43JuTqsUz/GTFrh0ouzC+Bcg/a9hvsI3Q /3Iw+brpYxQ2fWo4zmN7VAshXdY42sYV4A7V5si5KJlsurZdi4Iw6cy+Fjj+RF3R VHLcgEEPMacqHDdjo3DDsBPb8U6dtMrrCjPVEmenN04HMnIC+MiHz8qXAY/bdIo/ It7NhRCpJd49j1Dui8tYANV4iEDCjL1nyGIXFfI2PfEHcu+k+S9OEnqMEgYPR7ue 5rtKl+6UfNumK+JMkgeQL6A9SQxS/3pxJteJD1fVbp7zNqzBFyw= =PZhw -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--