Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1022949imm; Fri, 14 Sep 2018 09:54:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY86e9AqXWEO2wrEx8Yk8ResT3LCsCOZD45DsTbL5gbKuzlyzpufAC8EM67AUaechbOBhr1 X-Received: by 2002:a17:902:e281:: with SMTP id cf1-v6mr13154563plb.86.1536944097516; Fri, 14 Sep 2018 09:54:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536944097; cv=none; d=google.com; s=arc-20160816; b=l3U8qRAU1lwdns4jwZiLbfF5JXeFgLpn/lVwt8JSNEiJDr/WCSNN/cAeBBV/7rM7RP fzds22vrXhUVqAr8a3q91ozkWstzY2AInkKkfq7I/rVTdNZS7Cr2NOdJNtnojFSa49UU dtRDynTjGmHUrSQ3HzAZHybvpu8mV6nHsxVUSeIbeNApRfOmsexcKVp5mNwDVR6L5NKW NkDTamWEo/azUuSAlZGjM1/9EjIVcYZy8rN5H+pqhY/8y1hs4g+hyN8yNkFx1eQalS3D dYfpTWyrdoIQleYWHxiTd9gxDVJiMSVPHaU/BlvKgxPe0jekjYROFn+JUvCv/tQdrv0X +Pyg== 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=BkC58IeLsAzx/QD0EkrXyHHi7LgwnDYuGvK60PqFZ+c=; b=UyURddi3nptyDcwNwflFuLgGlrzZAESCQV1IZrLlcwgErzUpC2t6xDsdBZsoHwwG4v sc10V7ncd+kc00yKsmUD+6bpIo7wBI2DB0plvoxcachFFiGKaASNDxeyQ3Jt1GO8oKtI 5X/2dMQS7PCSddBQr9OrWQ6ZrkmNlvAH9Hv2+oTB+j9EtobLkRux+8U8GnAb99jiK+Bj jCUfUJGIL/xCzAm72v85e5Rab/lCQLQ8b8SI5euM+LDHASHsZgl6Ap3+YsbsXvrYGNJD GjtBAB7r8XRxArTEAYB5UHa6gxVKLehBaDfDcDYoCqoLjqJtbq9NTUp1h5gEKHGzke0J fX0w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i126-v6si8034331pgd.332.2018.09.14.09.54.42; Fri, 14 Sep 2018 09:54:57 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728010AbeINWJP (ORCPT + 99 others); Fri, 14 Sep 2018 18:09:15 -0400 Received: from mga03.intel.com ([134.134.136.65]:61672 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbeINWJP (ORCPT ); Fri, 14 Sep 2018 18:09:15 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Sep 2018 09:53:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,374,1531810800"; d="scan'208";a="80495170" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.151]) ([10.7.153.151]) by FMSMGA003.fm.intel.com with ESMTP; 14 Sep 2018 09:52:35 -0700 Subject: Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly To: Guenter Roeck , =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Cc: linux-aspeed@lists.ozlabs.org, James Feist , Vernon Mauery , OpenBMC Maillist , Brendan Higgins , Linux Kernel Mailing List , jarkko.nikula@linux.intel.com, Linux ARM , linux-i2c@vger.kernel.org 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> <94a2aa4e-69ac-7042-92d9-1ada46d5fc33@roeck-us.net> From: Jae Hyun Yoo Message-ID: <3e319dd0-17e6-679d-18fd-43ed59f7075d@linux.intel.com> Date: Fri, 14 Sep 2018 09:52:35 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <94a2aa4e-69ac-7042-92d9-1ada46d5fc33@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/14/2018 6:23 AM, Guenter Roeck wrote: > On 09/13/2018 10:38 PM, Cédric Le Goater wrote: >>>>> 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. >> > > Excellent. Thanks a lot! > > Guenter > Awesome! Many thanks to Guenter, Cédric and Joel. I really appreciate it. Jae