Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp184356ybj; Mon, 4 May 2020 18:54:26 -0700 (PDT) X-Google-Smtp-Source: APiQypIeGwiKT5ufWtfx95BlEfUHVG9GcEGNtadYFsxcjw5uttTNrqttCjuVtCW1d1Dzv1s2FK/z X-Received: by 2002:a50:8dc2:: with SMTP id s2mr752455edh.318.1588643666121; Mon, 04 May 2020 18:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588643666; cv=none; d=google.com; s=arc-20160816; b=GQhCkvdDkbU4epHsxzPyDVdzqWMmlbbx/IXdMYKl2gWTFigH8kBbgVmq9MmZvDK+lu QOUq7UvBQD8/4JZQJuV3CnCH18vrV3kXq2hd/hVy9eVQiJaBgxftsP7gkS9ixa50BLOe 4KvDzYo5A6vk6E1VEszyEwRXdErHGmwFp6vnmNKfra07LnLThr+IuetbTZqTn0Vv63g2 v4C0INKwTh9V10yb2yVyS0mZYZLjgZKC8KLV25CCeOUZ2RSsH8dn/XE/YpAvm7ypoyXg Ac+bAxeODm5z0Z9os+3NUKAuhRtFD7O/pd26b9DrhWnqWm4Bk8nYR0vxoC1MIQyaIXA0 g30w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=/3MspgH5L8p5UmJnJsMmCeE/gFmwo8eQrTXLhS2gV20=; b=cgaj3VfTA1dTRlr546XTG1UsnFkvQMYBtJoiOC2+dU21NVS3HOFSXatNJtAw1OlNYa t173VPCZJ17kJA+oLZ4Q73/T9kt9e/oXsmEWT4YSByNKvZWX5OFA/4yq9wKDbszRgEdx gyATqIUEWxMrK14MRcax/59KWfVor1EWlpYpvtWZR3LPSpUWJ3LsyKaMU4voq3ZpZm9h m7ofDIH3BSTTxv3orbG9xENJLs0S8JxA+GeIi/8qDh+gSFXNA79DzPli4JhTmFBb/Pnf WNJ2m/r7XquPGVC7EGFNsuzifRdVDQ/zOIv/gwsQPrJ7VmpOgNfRwV14gX4Z+CPMdz+z rP1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si466034edq.404.2020.05.04.18.54.00; Mon, 04 May 2020 18:54:26 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726641AbgEEBwg convert rfc822-to-8bit (ORCPT + 99 others); Mon, 4 May 2020 21:52:36 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:38957 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgEEBwg (ORCPT ); Mon, 4 May 2020 21:52:36 -0400 Received: from mail.aspeedtech.com (twmbx02.aspeed.com [192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 0451f7XU030462; Tue, 5 May 2020 09:41:07 +0800 (GMT-8) (envelope-from ryan_chen@aspeedtech.com) Received: from TWMBX01.aspeed.com (192.168.0.23) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.620.29; Tue, 5 May 2020 09:51:21 +0800 Received: from TWMBX02.aspeed.com (192.168.0.24) by TWMBX01.aspeed.com (192.168.0.23) with Microsoft SMTP Server (TLS) id 15.0.620.29; Tue, 5 May 2020 09:51:19 +0800 Received: from TWMBX02.aspeed.com ([fe80::997d:c0a7:f01f:e1a7]) by TWMBX02.aspeed.com ([fe80::997d:c0a7:f01f:e1a7%12]) with mapi id 15.00.0620.020; Tue, 5 May 2020 09:51:19 +0800 From: Ryan Chen To: Wolfram Sang 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" Subject: RE: [PATCH v0 linux master] i2c/busses: Avoid i2c interrupt status clear race condition. Thread-Topic: [PATCH v0 linux master] i2c/busses: Avoid i2c interrupt status clear race condition. Thread-Index: AQHWHdeQ1mqTBOPAdE+n+yVhmYVsFKiRMjyAgAeRFwA= Date: Tue, 5 May 2020 01:51:19 +0000 Message-ID: <9192c38a24804689809fa80601ae9126@TWMBX02.aspeed.com> References: <20200429033737.2781-1-ryan_chen@aspeedtech.com> <20200430141701.GC3355@ninjato> In-Reply-To: <20200430141701.GC3355@ninjato> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.2.87] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 0451f7XU030462 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > In AST2600 there have a slow peripheral bus between CPU and i2c > controller. > Therefore GIC i2c interrupt status clear have delay timing, when CPU > issue write clear i2c controller interrupt status. > To avoid this issue, the driver need have read after write clear at > i2c ISR. > > Signed-off-by: ryan_chen >Applied to for-current with a Fixes tag, thanks! Please, try to add one next time and please also check how the subsystem formats the $subject line. [Ryan Chen] Thanks your review, will add fixes tag at subject.