Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp881919pxb; Tue, 3 Nov 2020 15:25:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7mL0ek5h8p8Ho2hVYCveY0q8CJZPkMNOodBuJH0YReOkf9a+UeiSegyL8LiQBvXyEpLZ8 X-Received: by 2002:a17:906:9513:: with SMTP id u19mr12539658ejx.350.1604445918290; Tue, 03 Nov 2020 15:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604445918; cv=none; d=google.com; s=arc-20160816; b=aEs78tJsVstMwebbM/vX2w2Rhc/1G2z1A7bHJeU2rK7nAoT8qCpKm3Sq45CfXFezMc mkfSMa8F4qREPNkwBsbGlnt859Mge+EeWFVkjbDbmFRz+9A8659tvrI583L3fnixXHMK OQUSCJO9t0nOVs/5Ufpp7n095f3a0miVkkfXdtdcLmuKG6m2+cYbki9Tm+uqIHq0HvOl Rf8eCLWiQWh6fytRLsNPdDiXLzNYmUrEopDYCVfmLYmZgIVejgYpq4j5xJO8UTL9C+wb fJXqlMxL02w1cLGhEpBft8vsVfTA/wVs1ga3wNkdJVR7S3YFrxumedCYs8ItXR+7OrB5 a8hQ== 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 :dkim-signature; bh=v/q7Ph1PtUoo9nlkgrPm3NwtIG/eAguFaDoyNw6YB20=; b=VAWVpxLhJ0MiwICNlUMNGOVpBvPNtrNGmfJu45RO4cI0C8ESinHCYPue8rAeK2Nfw3 n+X6AQ4B5Wbw82VWrqZYbGaApug3MDjaTBkFe81NAwZJpaOD4K1LNYwlHq9PCcz6/nBv AJ9w0REnuBsL7H/GgMnH/NkRC+HHoVeVDqxE3bAZD7WtyGQ3ej0DHHDXfvJaJvEFYwXl cp/Gsk22PNwd5T8rHH85GhN2uTssY0/3jGB1mtloEBC6oi8Kn7207Ubcp5cdUIVV8a3E 8vIL2Qyidm6IrwpZSFWLwFWRmy1iTL+0y7CzLsXADolPrkE3AKdr9uyZyB8ZH/BcCQeT 4Zbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sDgRjZU7; 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 jz8si249022ejb.312.2020.11.03.15.24.55; Tue, 03 Nov 2020 15:25:18 -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; dkim=pass header.i=@kernel.org header.s=default header.b=sDgRjZU7; 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 S2387919AbgKCVD6 (ORCPT + 99 others); Tue, 3 Nov 2020 16:03:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:41742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387902AbgKCVDz (ORCPT ); Tue, 3 Nov 2020 16:03:55 -0500 Received: from localhost (p5486c89f.dip0.t-ipconnect.de [84.134.200.159]) (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 F1C9D20658; Tue, 3 Nov 2020 21:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437435; bh=hxlW3r3b6lq9QoYdLWyolF+GAnU+TF8hAo252FIV2hI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sDgRjZU7tvtviGdhngDeWfaKnIgKFat9R1eRHYGoEDdUxQoE1XNK+BRzcDx3gEAnn KAETXu6+WzFnAGB74BxZ7azCpg8xFwRTb78VNdBLnXMX5CDRpb4GRaBP6P94H5m1yg nPuF3sTYdMwCdIZ/ArsV7pISNGC5DeBTttVJ56pA= Date: Tue, 3 Nov 2020 22:03:49 +0100 From: Wolfram Sang To: Michael Wu Cc: Jarkko Nikula , Andy Shevchenko , Mika Westerberg , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Morgan Chang Subject: Re: [PATCH 2/2] i2c: designware: slave should do WRITE_REQUESTED before WRITE_RECEIVED Message-ID: <20201103210349.GE1583@kunai> Mail-Followup-To: Wolfram Sang , Michael Wu , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Morgan Chang References: <20201030080420.28016-1-michael.wu@vatics.com> <20201030080420.28016-3-michael.wu@vatics.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0H629O+sVkh21xTi" Content-Disposition: inline In-Reply-To: <20201030080420.28016-3-michael.wu@vatics.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0H629O+sVkh21xTi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Michael, > Documentation/i2c/slave-interface.rst says that I2C_SLAVE_WRITE_REQUESTED, > which is mandatory, should be sent while the data did not arrive yet. It > means in a write-request I2C_SLAVE_WRITE_REQUESTED should be reported > before any I2C_SLAVE_WRITE_RECEIVED. Correct. > dev->status can be used to record the current state, especially Designware > I2C controller has no interrupts to identify a write-request. This patch Just double-checking: the designware HW does not raise an interrupt when its own address + RW bit has been received? Kind regards, Wolfram --0H629O+sVkh21xTi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl+hxbUACgkQFA3kzBSg KbYVtg/+Lz6bV+bRe1EfNnrycWSFkU4zSTG72yi/kf2leHJt/rpkFj2PHyLV7XF8 8BOUjehod8KY+1NO0tFP2Vf9obK6LLk7LkfLHfaeh1z09nx/zAAtTy9N/VBNG94s I2WDUmUaLR6LGHZBmphdljba1gkBR4LV04WITgMtn9QM8TR1KKyuAGez7nPuN59S Mv442+qnpZttGtKRvNayJDz0uSGuUpimyxvPFWZablJgT5YeVjr7A7KGYSND4ILw fDjfllSShmshgbmY9bI74GVurcAtAqbpdE2sQyQ2Dz9Pd/2aHvcZ7hscQVSeJ2NJ sEFCLHsFcW4dJGaGlc2+QiYPnVxMk9y3QbUmQhO+a2b2KYI+7IJktEPwKzm8/ap6 tYioaB6Ezy4Y5SnzAxuKESCjQeC4uS1wQPnriFRqxyK9CCbnNm8D1mJAhynmORqy oY8yoxlPNX+5nou6s10Ox6aqZ039m3N8JY/yD3ixHVXT6+K0TEWmGChVM2/+FNtF ZvDvg4NHox2S1vGSRBtCH9+fJICeoZsxwuwp3+0hoQ12v1G8ZkK8C76sw0RIwZIx HTP9ShZtaYDDhHs/Svc3XfePYcNekSf+iP7/ZraEiH9wnQ/5wxN7fFyo7gZ8X2xz 68z+R4q1xqRdbIG/etjsOrBt8UlQKKXZaByEf2LVt0CHUJ4jaHs= =ISuO -----END PGP SIGNATURE----- --0H629O+sVkh21xTi--