Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1033816imm; Thu, 6 Sep 2018 14:14:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdavGTYwX6CIXWnOuvNW+CBL6aRjU6Y+WaaSynQ1xUj7wpxTUGx4LpRrWIv/49yAqLFUxCAF X-Received: by 2002:a63:be4a:: with SMTP id g10-v6mr4926523pgo.378.1536268474133; Thu, 06 Sep 2018 14:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536268474; cv=none; d=google.com; s=arc-20160816; b=QsoXfHrEKxfUiP5/HG9lgLR7gW0LZO23aT+l7LK4RYEVEtz+8iFy8G1n1dX4TwPWgJ 30Ci/AozRiPUjgPj62P+Q4gmHt5EHAzHP5I3dtkG7sV3KOy4DqvhgtGN8u7c3OVdZ9UI nyqK/9HZnMIWBKAc+8ck+kUwJfIosCR5pSTZtTiW6L0qsnZg2zaNAslzz5c6cMhesZPa oZE/66HNMemXHphQTw5/yHyC104l0voOlR96vutCmKLfhAnScHNcfCAYvRqlBe/Yp3I8 2OcsCox+ABibdRB3WfoQOmdDc0QpFBbQYvjK583/QSaRm4AfFdBsLKporDdJnaxIBgZB RHsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UJBLYZ9A5pF1ZDDZQRm7ySoWgBE2kRsob2cY18NXrBE=; b=mM7WiLfSobb/sMeImHZFX5l0AvbtPcOjETSAc8KZaUQm31u/Pyea+33cri7MyI2WAN qTFwPIyv3mICznYlLMsykip6gMqxIKGQuc/R1eCuriiaZnVPDCtiSajz6Y32a1+1u0gB kqCVHYIHO3IQ0jJBq82VubExIfZWxFUXmPw7qyfyXiz3PipmoIVx9hteUvTkuGIeZcrx FonG6geOKfmsDb7ZHuN7n2gMrG6gxMtzslqoiweNJImxjUqp6pXELDq0GJ+bPS9myray Sy8Gosf7HdQub6d3DCisX6nzuQjmnnG+qiQBOfGePjBKsu2BgTUJfHEb05BXKcFDciQ2 iPlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68-v6si6220345pga.113.2018.09.06.14.14.19; Thu, 06 Sep 2018 14:14:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729111AbeIFXRi (ORCPT + 99 others); Thu, 6 Sep 2018 19:17:38 -0400 Received: from sauhun.de ([88.99.104.3]:48188 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728848AbeIFXRi (ORCPT ); Thu, 6 Sep 2018 19:17:38 -0400 Received: from localhost (i577A6E95.versanet.de [87.122.110.149]) by pokefinder.org (Postfix) with ESMTPSA id DB9462C058F; Thu, 6 Sep 2018 20:40:51 +0200 (CEST) Date: Thu, 6 Sep 2018 20:40:49 +0200 From: Wolfram Sang To: Jae Hyun Yoo Cc: Brendan Higgins , Benjamin Herrenschmidt , Joel Stanley , Andrew Jeffery , linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Jarkko Nikula , James Feist , Vernon Mauery Subject: Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly Message-ID: <20180906184049.GF8607@kunai> References: <20180823225731.19063-1-jae.hyun.yoo@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/aVve/J9H4Wl5yVO" Content-Disposition: inline In-Reply-To: <20180823225731.19063-1-jae.hyun.yoo@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/aVve/J9H4Wl5yVO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 23, 2018 at 03:57:31PM -0700, Jae Hyun Yoo wrote: > In most of cases, interrupt bits are set one by one but there are > also a lot of other cases that Aspeed I2C IP sends multiple > interrupt bits with combining master and slave events using a > single interrupt call. It happens much more in multi-master > environment than single-master. For an example, when master is > waiting for a NORMAL_STOP interrupt in its MASTER_STOP state, > SLAVE_MATCH and RX_DONE interrupts could come along with the > NORMAL_STOP in case of an another master immediately sends data > just after acquiring the bus. In this case, the NORMAL_STOP > interrupt should be handled by master_irq and the SLAVE_MATCH and > RX_DONE interrupts should be handled by slave_irq. This commit > modifies irq hadling logic to handle the master/slave combined > events properly. >=20 > Signed-off-by: Jae Hyun Yoo Applied to for-next, thanks! --/aVve/J9H4Wl5yVO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAluRdK0ACgkQFA3kzBSg Kbbwxw//fnipr7fL2hTZUv5YPPPStXA0l+i/78PzHVW1YNbeHJih2fAM3UfbNllY 0dS+h8z1/b8u+BLOBsuBuYsWT4rNnecA8i7vW0KIZQ/0bjV+BjrK4L8Wu6XQf3bc OYHpp8iNBilvGKnWvEXPDOi/x3WYGjVToEGGTWDRU+4VAfORbwijUG7bw6YQKBPr 9bA+7dSFgFXPDj2HgvapOo/foHcGdLeT9X4ydh4jHr3mbx1OsE2HrLQKR5UGAuoq 2aWmXQSpZNWwsf1OwOY2O5t0YZWzZS0rsqoJt1cS0qNtGeBG3Pm76joPm4S6yFMD Xv4cM49BMZYFMuLIj391jz4vPM0AyqJEyCaYrz0V+V7vwgXskTAmHGS63skduLIj ytiB+ogvIDTIem3e5/Yl3WMQP32ViWaVGRDJj+tUU3zFuzrIkFvOTwDmaH6eN8oG 86nyhmkjli8V/XJ4z6sWxd8QJNj4rUAuaetmQw65lIN47tviXcRpb3ZVhiOxLKSR TI1IpRGJQ5j79KIYthxYS9pwIRqUYcv1dqdKUb75N9q1YHyaE4KDZUOGSpxwwDZu Tlh3JIGTm4Uqg/CBlLJiPosZ06lvWi6ymhvMnNi1hFbq3H/iSksiD7P12zC3TZzz LLsMUkE7jKR2Na2hA13nNlHfZZ/aISfsCtjZ/FHk6VIZZZs2ltg= =4NGx -----END PGP SIGNATURE----- --/aVve/J9H4Wl5yVO--