From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74867C4167B for ; Wed, 9 Dec 2020 17:11:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2F0B223C40 for ; Wed, 9 Dec 2020 17:11:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732608AbgLIRLP (ORCPT ); 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47FDFC4361B for ; Wed, 9 Dec 2020 17:11:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 060F023C30 for ; Wed, 9 Dec 2020 17:11:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 060F023C30 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=the-dreams.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=E35TFlhRjhUz1MKg+QMeEtDpOtnwIlyuViIpr6MjUd8=; b=ChAj7zWy15LubhQZCrQkOQWy2 tH/x8pKNwc6o+wHEP3G2OzI2PjHvzePB076f3ZAMwbgoDWThKmijsYL1Akriy0z9sXCP0XLZ49IvV m/uKOT/C+k/0dNu3yzlgjr6r3kI8rpby4eqHQ/N4aUAB69nCbWVt08rNikBBxjTycFHCOl8q/JfWF ZkTqBKVINDE15XXMO8YWagYNoao33lkhYKHgw/D0QGkHvaWSsLcCUFYEisXJJaY39RjCNWRHBLYGq YpwoG27HpW3FLubff28wD9usbJ6BK+ZbGaVDrnvM4Ybk/h3kDYUXthEfDVp5f9nfEq2xMAhEqpt04 Q+FwheThQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kn2yh-0005x7-Al; Wed, 09 Dec 2020 17:10:11 +0000 Received: from sauhun.de ([88.99.104.3] helo=pokefinder.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kn2yd-0005wY-Ou for linux-arm-kernel@lists.infradead.org; Wed, 09 Dec 2020 17:10:08 +0000 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 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 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201209_121007_927599_2BC39073 X-CRM114-Status: GOOD ( 11.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aisheng.dong@nxp.com, Biwen Li , festevam@gmail.com, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, Biwen Li , linux@rempel-privat.de, o.rempel@pengutronix.de, xiaoning.wang@nxp.com, linux-i2c@vger.kernel.org, kernel@pengutronix.de, jiafei.pan@nxp.com, leoyang.li@nxp.com, shawnguo@kernel.org, xiaobo.xie@nxp.com, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============4251149894405228113==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4251149894405228113== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline --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-- --===============4251149894405228113== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============4251149894405228113==--