Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3744536rdb; Sun, 10 Dec 2023 20:09:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLjuSj5NcCxbiXBfx/wqWEJxk4wcRuZkansrGy07ssTbQ5Kys0KeCDOEixb/poQO1VaukZ X-Received: by 2002:a05:6a20:3517:b0:18c:28e8:d55f with SMTP id d23-20020a056a20351700b0018c28e8d55fmr4372418pze.8.1702267771593; Sun, 10 Dec 2023 20:09:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702267771; cv=pass; d=google.com; s=arc-20160816; b=CHDdQmzuvEaNv5GVi8SZrlKGL3F+SrjFHGQ6tM6nUI1OQDTxWcvkvR3itmZIxI+TE2 x7VduEFj8C3GuENXJlq9zU5L0ocMSVulpFj/WVcv58cp3pW8WgZXORNKnUYFuslngyVh En66Z2G6nseBQOyL2HoZOnHGhyiQzuxrqtpL2e5djTMFBY5C71LLiB6Uw1ADoi/G1LGZ M7em/iTE1LhSnzwa3+w2VQU8hYtYlTGtiv2xdOJmg7UJV509q0tRrGiSGoqa555byTs5 rp5v8W7B0zRPY6TMZXPecworiFv/tC+hCVkDpgf2sQak+nt2qFWdiFP6+ZQmgE16/DpL M4QA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=jZVfc1QyzEO1ea+sRkqj2VMYPnkp1996ptwV7PaGraA=; fh=fDV2kHKRZyQJzGaB8rKZy+G5r76YYDkRhDRoC4GaaQI=; b=GaQko7Xynsh7m74CrG3HyI39fPLKCIQSR7j4apXx7r29D4HVy4cRGwjGzijWWVBFZv gT8Lo86Q9w29jDxbqrpS2jHuQ3Fr6oPjZk01f28ejL1gUcr9+ANC/bLryWF5x9bhWnZN arMIfhqVTSKDzS5qth4YkHfUJ68lw84Dy2D7fv+VE330cj2g2FNAu/5cD4xpm/ch2fPm SQqlFY1eQ7hXOegPVsKHWj3PuHkkC2nGu2jIoRAfPceCLR55VNc7YDqRzaPuApQnRfms eBQ1YR3b5/Jw6EJs+umY3rWJlAndCEMxE2MiRoR5n3+rtz2lXagGiXIlvURQ/tWfT83c E7Cw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=IXUfMHtd; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s15-20020a65690f000000b005c6c1edaaa5si5450289pgq.520.2023.12.10.20.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 20:09:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=IXUfMHtd; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4322780658EC; Sun, 10 Dec 2023 20:09:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232984AbjLKEJN (ORCPT + 99 others); Sun, 10 Dec 2023 23:09:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232910AbjLKEJL (ORCPT ); Sun, 10 Dec 2023 23:09:11 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2099.outbound.protection.outlook.com [40.107.243.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B92910A; Sun, 10 Dec 2023 20:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WBk7W54NY5E9FpzBAesD3ShCIFLB/fcH3JyIsrpWjmpcpDXChG0JuXbTb7NG2o/juH1A+o1I7eBn/vGWgzHJyakSRjfMLCx6HCNb+/jnaO4OdUXUasE3/B4jojHb/GxnUHFy8S6nU0H5UZ/prR6y4eHrBLB7heaOGPbNGvxiO90rrE9FHt+ZCNVYfKkSk3HhbG6eQrbu0n+6o6iQzve150lBrJ3KdxBvi6yBcCBUbog+4478Ag6sgAFD47d7sjvEgbibOczz1xdueXvUAR4hPvpSAObD/ycuzWnOYI+EdOTFTCJZUjlqTe+Xt2QUKxHM9PyP8I8DdQnewlP9gIMuBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jZVfc1QyzEO1ea+sRkqj2VMYPnkp1996ptwV7PaGraA=; b=ViR2q/7QQOUqGzm4vF3LvI3i5RT0BSlNUEITpoUeZaTU1CVeohwV7ifC2laNqoBApzW31H3cuLxworQnDvea6J8OagOUJE1m7LpeJNVhj3PppUeS1T9o3Ts/AZ8WaHGjshbLEqMLl5RZOI8AP4omQ8WLF4bTUO7mq27gMh35fLHo09S+hocQRmrDmuVbupnCNbxR5dG3hjcBOH4fETLZqyic3jdXJN0nbhJnWrZtINvh+Up0ogoswKSWhIpsHw1sYMqJps9ktfoMZ2oa2Dd0+5j7zd3O4KrUidBScyq/JU4MpL03C0UvgugAx5zKdEVXwe/QRsrMfCBAPFMriTJQ3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jZVfc1QyzEO1ea+sRkqj2VMYPnkp1996ptwV7PaGraA=; b=IXUfMHtdmyllJEGDOauwhAfrw/va8ETwkug91rSVR3ESgpJp70JMiBvFTidozw85cl6jNku/6TO/8N0lGQriyJR71oS07JwetBQ4jg9nn13abasVSCIRorcMiYxgZox3KFpG491/uP8fp/XCnb/7Z5KyLWuy0RLySFp1W/VQ5d4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SN4PR01MB7455.prod.exchangelabs.com (2603:10b6:806:202::11) by PH7PR01MB7821.prod.exchangelabs.com (2603:10b6:510:1d9::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 04:09:14 +0000 Received: from SN4PR01MB7455.prod.exchangelabs.com ([fe80::5682:1d84:171a:1d68]) by SN4PR01MB7455.prod.exchangelabs.com ([fe80::5682:1d84:171a:1d68%3]) with mapi id 15.20.7068.031; Mon, 11 Dec 2023 04:09:14 +0000 Message-ID: Date: Mon, 11 Dec 2023 11:09:08 +0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] i2c: aspeed: Handle the coalesced stop conditions with the start conditions. Content-Language: en-CA To: Andi Shyti 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" References: <20231208033142.1673232-1-quan@os.amperecomputing.com> <20231208033142.1673232-2-quan@os.amperecomputing.com> <20231209202810.r7kkz2hlaonyibha@zenone.zhora.eu> From: Quan Nguyen In-Reply-To: <20231209202810.r7kkz2hlaonyibha@zenone.zhora.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0307.namprd03.prod.outlook.com (2603:10b6:610:118::8) To SN4PR01MB7455.prod.exchangelabs.com (2603:10b6:806:202::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN4PR01MB7455:EE_|PH7PR01MB7821:EE_ X-MS-Office365-Filtering-Correlation-Id: 278a8f74-20d0-4787-fd98-08dbf9feeff1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4F6qwG1wc4wLjxb062CQwY0rQys0tycQmRfTJQb+RFeEsXrNZ4HXgaZ03Kyj67LvgzqcXXOdSc5TDfh5tza5VdOTgtSeCPOxHhCzjEDpf2c6osf+indgoNR8Y2SZ9s8rumzeWKdg2BGumyZch4yTi4yfQHc4szs6ehaVZzhwVqm//hEYRccjaljMOj6/4Mv5mOV6KLGY27v8UCZGfRrWvSjrSl1A9EBXGblXIdr6zjvwvJNepnZt9TGXNKb/EZhDOQu+9SB7dGfxuMTs7yGrhzh+Dlo5udPq3gtSLUaWGdcMUqhP9v6q8oz9Lwj2DcOR97ZKYzqlFlOXFSNkUUMEcnjtuHW4McQE7l1sZw/JnqYX5wyI6D16e33/un78GdvM9O7Ey1uRizbPX6RjnuXyg8ObGVK4vm3LdCLVXK542TqV5pQorcqaFmyTJbmLTH38UHpEAQB4IQyr6S2k6NjzKzLfyIuCCRK3xyHsroiVbikNC1z0BelYw4mZFqzcbJDU6KlZ479M+SHUM88tzY3nSjqTzTop1ihhXExAxRHtQv44dRrZ0E+3h+OFiUxzdbjj3X+ngT1/Gd6g0KOIPE8xnNI661IQPCiH3mSTfXp7/huOe5CTxFEJlbz1/l9wBefd X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN4PR01MB7455.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(136003)(376002)(39850400004)(346002)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(6512007)(6506007)(53546011)(5660300002)(26005)(2616005)(107886003)(4744005)(7416002)(6916009)(54906003)(66476007)(66556008)(66946007)(6486002)(2906002)(31686004)(41300700001)(478600001)(86362001)(8676002)(8936002)(4326008)(31696002)(316002)(38100700002)(6666004)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T1paRmlnaEJibVFIWEx1OFJSUkNTL3F6NGZrWG8xRWRVSlh2c3dHQjlMUE85?= =?utf-8?B?OGNRU0FFNlNLdWROUlJJY3NzVk9RTnozMzRUOTZ0d0Q0MG81eENTMm41ZjZJ?= =?utf-8?B?ZHQ4OVdKL2tPN3BBeUNRYWpHNGM3eUtGUkQ4dk1xYVB3UGhYSFIxbXFRTE5p?= =?utf-8?B?WjJNd0tiSnVWd0RkdWh1c3NoaVBPSnZ2TkdZeUdnUTJvMGNnS1NjZzlhMkVS?= =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w?= =?utf-8?B?d2ZIb3pzUG1xRzJPNWx5ZDZHbEliTFlEVWlJQitaU1pmVmpGR2t3c1ZGNmVk?= =?utf-8?B?b2xBWjlOMDZFbDQrRVY4T1g2UlV2d2ZaWXArRGV6QUN0aDd6R1pjNTNSOHVG?= =?utf-8?Q?mInS04JkJaXZfDfouRhzBV4=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 278a8f74-20d0-4787-fd98-08dbf9feeff1 X-MS-Exchange-CrossTenant-AuthSource: SN4PR01MB7455.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 04:09:14.7235 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AnFPXQs/zQ3AshaZUiQBiLfjTRDXYzs7ab866CNoy+eOJFvVzJ0B9zoNLWdUDtNsB/W3CR0QJNl1X3mlrLpxqChdu43HdDzDXoaJ1oGaOb4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR01MB7821 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Sun, 10 Dec 2023 20:09:29 -0800 (PST) On 10/12/2023 03:28, Andi Shyti wrote: > 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, I'll add your Reviewed-by in v4 Thanks, - Quan