Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp380785imm; Thu, 13 Sep 2018 23:16:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY/yQPMyIbS88JunlAJrPp2hEkU0kdcseiy/OrjOKmZ3qQhLFLfR4+/8cW9vQuKu8Jvrmmf X-Received: by 2002:a65:40cd:: with SMTP id u13-v6mr10093065pgp.334.1536905819527; Thu, 13 Sep 2018 23:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536905819; cv=none; d=google.com; s=arc-20160816; b=U60nnLnucdl/VmaT40iEuneu7q3BglQqBuLg4rXlob+ElZUgev12I1J2dm278Z1XjC aMdCZhy9DHuVn9MFASBm6GowHoHwXdtAwCKsJQkGReMZkg4ACsd+D1GhdXNyK4dSd/2f zm/fbaS1S4u5QJdBHezWh/49GGB/BHVsKUry4aL8GrI14uzJcxrfcqOMHqqUM0zqxm+B eh6QvmSRQWUeR0BMF2IfxxdEUG9pI8e9wCtbTD+utbZ6vImrS/WHTkgv6Uphkgms2rdq 7huRiySjgTQzJh9KShIC5AtvaMCIHAcSbCcMLFn/O9NN16e6KSST1d1RhSTuzo4slItw UBVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=+KjUzoX5PySEDs2ZvS0IYsa7bMFtA+Q31meNndIA5Ew=; b=kRhVns9jVSx9av5JR2QXKy4Z+o9Bi1NyiMEVkd7LBaYaKWdqgNronlCJxfBSTanX3A H7bMAibaFr9okY4dnmlh8xT2+r6ZIlWHm7DwNfJqXwe+Gl9vm0DiSCoe9RxB1FlV9ZgV LL5ipVDvDEJfqSftTH76S19bTLnjdBF+3z21cNPGbzxG+o4fqZ9tc/eX268cKIAdWZwR akn1T0vZWMrrpFmUwhhE9XGgdS0QoO6Vecv81U78vwHmPRVLNde1mcCwUbsi4/Uyxcgy d4r4MfLBoAL5Km4JLRJX/QChD1Zq7klIJPocTojOcvo2PA/VWpL/vp0AqtgfK/z72fMY b4kg== 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 d22-v6si6328170pgb.180.2018.09.13.23.16.43; Thu, 13 Sep 2018 23:16:59 -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 S1727795AbeINL2z (ORCPT + 99 others); Fri, 14 Sep 2018 07:28:55 -0400 Received: from 4.mo178.mail-out.ovh.net ([46.105.49.171]:50379 "EHLO 4.mo178.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726955AbeINL2z (ORCPT ); Fri, 14 Sep 2018 07:28:55 -0400 X-Greylist: delayed 1199 seconds by postgrey-1.27 at vger.kernel.org; Fri, 14 Sep 2018 07:28:54 EDT Received: from player761.ha.ovh.net (unknown [10.109.160.253]) by mo178.mail-out.ovh.net (Postfix) with ESMTP id 6776D2D262 for ; Fri, 14 Sep 2018 07:38:52 +0200 (CEST) Received: from zorba.kaod.org (LFbn-1-10605-110.w90-89.abo.wanadoo.fr [90.89.196.110]) (Authenticated sender: postmaster@kaod.org) by player761.ha.ovh.net (Postfix) with ESMTPSA id A842F4800A4; Fri, 14 Sep 2018 07:38:37 +0200 (CEST) Subject: Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly To: Guenter Roeck Cc: Jae Hyun Yoo , Joel Stanley , linux-aspeed@lists.ozlabs.org, Vernon Mauery , OpenBMC Maillist , Brendan Higgins , Linux Kernel Mailing List , linux-i2c@vger.kernel.org, jarkko.nikula@linux.intel.com, Linux ARM , James Feist References: <20180911233302.GA18799@roeck-us.net> <5698ca34-14c9-8d05-c4e6-5acf85ff9d14@linux.intel.com> <20180912013449.GA12612@roeck-us.net> <7fd98646-fb5a-be4d-ce37-84b74e0fa8b3@linux.intel.com> <20180912195844.GA6893@roeck-us.net> <20180912203059.GA18201@roeck-us.net> <3f86e75f-1502-eae8-0633-d087937111c8@roeck-us.net> <20180913155703.GA22605@roeck-us.net> <2c481986-7ee0-4887-5c9b-64e2cd9d8c04@kaod.org> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: Date: Fri, 14 Sep 2018 07:38:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 5290603662555188096 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtjedrjeejgdellecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> That seems to suggest that none of the status bits auto-clears, and that >>> the above code clearing intr_status should be removed entirely. >>> Am I missing something ? >> >> You are right. I just pushed another version of the previous patch with this >> new hunk : >> >> @@ -188,7 +200,6 @@ static void aspeed_i2c_bus_handle_cmd(As >>   { >>       bus->cmd &= ~0xFFFF; >>       bus->cmd |= value & 0xFFFF; >> -    bus->intr_status = 0; >>         if (bus->cmd & I2CD_M_START_CMD) { >>           uint8_t state = aspeed_i2c_get_state(bus) & I2CD_MACTIVE ? >> >> >> The QEMU palmetto and witherspoon machines seem to behave fine. Can you give >> it a try ? >> > > Works fine for me for all affected qemu platforms. > > How do you want to proceed with the qemu patches ? I attached my patches > for reference. Maybe you can add them to your tree if they are ok and submit > the entire series together to the qemu mailing list ? yes. They are pushed in my aspeed-3.1 branch. I will send the series on the list. Thanks, C.