Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6385858rdb; Thu, 14 Dec 2023 17:43:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAIktOZp4fEneTyLWJ3LpZTuCQhaoOmjgZGJTt9nIjPgRoGsxP+oI+TDSphwnQxBQcxObe X-Received: by 2002:a17:902:d48e:b0:1d3:5d66:19e4 with SMTP id c14-20020a170902d48e00b001d35d6619e4mr4221438plg.20.1702604581346; Thu, 14 Dec 2023 17:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702604581; cv=none; d=google.com; s=arc-20160816; b=ixN2S/mEKf0/YHFarS7tT8XH5DtDrTni/QVhQxrGO23F4CTcStx2VvlyAsYAvnIuxx GgOKCOnoMHTE2n4yvQHY3FY1B2zoek/eYMib8SlEYwmzf9m0WFy4VAQywrrJlCjj/7iH BW/8l1YfXed/sfpwwpLMdO0n5OTcNRtrK2HYU9+cNJxy+egVonet3xBbMhjLwcrif5v2 V4jXtS5RmUsAgbu+ZfxBMQrLWk7+gKwec6uaUc64HDvTGF8x+2MOybHxDH+oBvWrqOuT aQ9R3HR10S4d2PWF75S7UT8fGq1CN1NnFhsaeg3lMN3wz38ci3tXLuIekuWy7HgCIo8y 3t4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pvtrRPZZZ82Xic9givrP0YtmJ1E0eyVIb0dgr/VctQg=; fh=ABkbQnYy7mj1U0IlDg0dsudt5Oa+PeG9h2yzCz5KuJE=; b=yatIg9BpUdvchTrBrvQbjFU5ViDhEc39IwfYjnFk5vndykme3mnKIMkO1YXGQkThOF lLkWUbLebL1UeAXZr+fTBlJFtUzTPWjn0Ua3eTbuPcqKlWMR1Tsj/Ze//UE6B81WqdcJ FrFQuaACR5Ve5s77lrAr26BzcxU2osBMjrYyEp6gVLcSZ3+NXbAFEyh+CIRcbS5KlFYh 2rOGL2tpT4IxIvsa29t6MBbxJMow922Rf7orT2B+MiT+i2+jPdjyyUXlmtU491u+ykj1 3GqYheTFWXWW48pPM+IJbg7AB7L5w9cpVu3U9bEDkshAxg7bF1HiN5JzjhDdpFfto+if a9Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZCEXQo6; spf=pass (google.com: domain of linux-kernel+bounces-321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 10-20020a630c4a000000b005c62aaed5acsi12308655pgm.889.2023.12.14.17.43.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 17:43:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZCEXQo6; spf=pass (google.com: domain of linux-kernel+bounces-321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0840D283E13 for ; Fri, 15 Dec 2023 01:43:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81D1F5663; Fri, 15 Dec 2023 01:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IZCEXQo6" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0509538A; Fri, 15 Dec 2023 01:42:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC62BC433C8; Fri, 15 Dec 2023 01:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702604571; bh=WpAhXUDP0156J7Qod8uxjWkADmlPCIE00X7Adp2r1e8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IZCEXQo6pawTJBvo7W+kRFb/WNCmOGU/PI7DgARIcNi17ISz65nVpcg4f/pPzcJ5E CNucasQGiaQe1/TWSM66jhPq+C4TpAgHr5mL5mo7ppCSbbSGjHc+UVmI4d2RPGj8ZJ U20wj/8qiYQ0LaH3BpSL943jq7ESdoaqfM/UG/XrzhkOmoY+6THBgc6jxD4pMIUwEN RisdElPzjsEUTLYYyLUp55lEMxUG+h0+1np7mcn8kPnr/xYPPmzmWCGrIpsFtnwzpR 827xHxZmmH7Cjzu/hpZ2b+C+xbhP+Wd69sFaWcHDtwMkQpmWVXTpq3D39QNkvrNCHj x7qBkKncgHTqQ== Date: Fri, 15 Dec 2023 02:42:48 +0100 From: Andi Shyti To: Quan Nguyen Cc: Brendan Higgins , Benjamin Herrenschmidt , Joel Stanley , Andrew Jeffery , Wolfram Sang , Jae Hyun Yoo , Guenter Roeck , 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, Cosmo Chou , Open Source Submission , Phong Vo , "Thang Q . Nguyen" Subject: Re: [PATCH v4 1/2] i2c: aspeed: Handle the coalesced stop conditions with the start conditions. Message-ID: <20231215014248.6f7sqh6n4kmhe4js@zenone.zhora.eu> References: <20231211102217.2436294-1-quan@os.amperecomputing.com> <20231211102217.2436294-2-quan@os.amperecomputing.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231211102217.2436294-2-quan@os.amperecomputing.com> Hi Quan, On Mon, Dec 11, 2023 at 05:22:16PM +0700, Quan Nguyen wrote: > Some masters may drive the transfers with low enough latency between > the nak/stop phase of the current command and the start/address phase > of the following command that the interrupts are coalesced by the > time we process them. > Handle the stop conditions before processing SLAVE_MATCH to fix the > complaints that sometimes occur below. > > "aspeed-i2c-bus 1e78a040.i2c-bus: irq handled != irq. Expected > 0x00000086, but was 0x00000084" > > Fixes: f9eb91350bb2 ("i2c: aspeed: added slave support for Aspeed I2C driver") > Signed-off-by: Quan Nguyen > Reviewed-by: Andrew Jeffery > Reviewed-by: Andi Shyti > --- > v4: > + Add an extra empty line before the comment [Andrew] > > Note: I'd like to keep adding Reviewed-by Andrew and Andi for this patch > eventhough there is an extra empty line added before the comment as mentioned > above. Thanks for the review. that's OK and you should. You would remove the r-b/a-b only if you do some major changes. Besides, this change was asked both by me and Andrew. Thanks, Andi