Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3128835rdb; Sat, 9 Dec 2023 12:34:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGUXUfDgdQq1bUOeg2KQm6IT6fC7YrlG0Jkxy5NuKbojHCHfCGKQ5RBM62vf9CNVugyG7v X-Received: by 2002:a05:6a20:1390:b0:18f:97c:9780 with SMTP id hn16-20020a056a20139000b0018f097c9780mr2310840pzc.104.1702154074951; Sat, 09 Dec 2023 12:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702154074; cv=none; d=google.com; s=arc-20160816; b=TBv8nJa50YHpZP7RBcuFsXSJDg+eyD8LMVN13uvpRyzE50cPvErkT1NawH0BX8b09P p4VMZwU/drEV6jX5kDkd9AqzNn/mkjSrIPabD+M7iCM4pGgHqMsGwMy4anWtV+Fp4o8c wT34L5OgNPRPOLnQjYLPYqyy4ESurMRRd5UgTveedUxN2iZr9SQqyKYVdAfq547iYzTS 17hSj5FCa8JaBuBHO2GISPC/okicy4iorKossZP4KaO598tzitun3ZvWw0+lD30Y4eKJ x0M/uDq8n2QW9bhP8l5KW7hZ0FrAGOxtGJNlrCAchWQa8n8Cm1miE+35U2e+TciyIy0x +MGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=A50VuOFRzNmNxj6BQSCEMFZUp+z4/JkE2fjE0wZMrn4=; fh=ABkbQnYy7mj1U0IlDg0dsudt5Oa+PeG9h2yzCz5KuJE=; b=htsdDmEdMWuPZRryxXEw55AOl508+FkUNGm/Mxc8WnkBZ5Fgz6RXWLjKT8XovCmb2q 839haIf9ZNsSl9C+gIw3wZ84XbhrKIW2diriSuAymVz5dLZpd9vIOpXVGdN7SnmQDzaU 0ItzPqgnxP8ycvwrwwlZU5tL6u/g2QYjC8wK8ySg/wD/vyaGGvdljhM3MHnb+kG9LDRL kQVn55eBW+GSrWbtSCUx7yEQN+iDgDl8Cpw+koN1r2BAcxoFK1eYsPNxPSk/DL2gENEo I6bOaWrzay1by0xrxSdrtX8IL/DC/nBWIkLwvxjS0LxZskLX/tmFnpcnnYBqz2DzI+Vw WL0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PzxK6iBL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h7-20020a63e147000000b005b915369815si3493258pgk.155.2023.12.09.12.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 12:34:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PzxK6iBL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4038E8098706; Sat, 9 Dec 2023 12:34:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229509AbjLIU2N (ORCPT + 99 others); Sat, 9 Dec 2023 15:28:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjLIU2M (ORCPT ); Sat, 9 Dec 2023 15:28:12 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D735413A for ; Sat, 9 Dec 2023 12:28:18 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDC43C433C8; Sat, 9 Dec 2023 20:28:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702153698; bh=rslBYi0BViswbTgH93m6HMfXVxguyYBllIpDJEbGmY8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PzxK6iBLgBu0UDJZ5PDebxoB2/rmQ9/0kO+w7tV/H/fCrrgYe1Ag+jo+7XrTon596 Xsp75wGvG91ldzPwNe8XC7BF0M9Y2ac27ZkjPozdeC1grIQVQpwclyg1xKHLz72rLb OsPDi4flg4Dd63wZh5kOfS8Hq5E6alekoMGJZ9Aef2WzfqRR9z0UKQs+8RaDIveLQk qpgSShjeZl0a8hNMDdE/JjmyzBVyuT0Hi57k2ngyCzbwI7H6+Gy/NMq3Rj7/L/gfus +SGuJ3Zzg5VxmI1npvnQAXlTvzFq29Slgi/3xfK3hESpslB0u3TUsk3A1D/z9AeddD ZPQ5WavzE6mFg== Date: Sat, 9 Dec 2023 21:28:10 +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 v3 1/2] i2c: aspeed: Handle the coalesced stop conditions with the start conditions. Message-ID: <20231209202810.r7kkz2hlaonyibha@zenone.zhora.eu> References: <20231208033142.1673232-1-quan@os.amperecomputing.com> <20231208033142.1673232-2-quan@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231208033142.1673232-2-quan@os.amperecomputing.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 09 Dec 2023 12:34:33 -0800 (PST) Hi Quan, On Fri, Dec 08, 2023 at 10:31:41AM +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: Andi Shyti Thanks, Andi