Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2266166rwb; Sun, 2 Oct 2022 19:45:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pISfsQQTHet9UnBaBRGfgpRmSEstSiTaNHQuFa1+tR+ZtJGvuioWVyZ3aR0DF8WaQsTO2 X-Received: by 2002:a63:a14:0:b0:439:e41a:6646 with SMTP id 20-20020a630a14000000b00439e41a6646mr16864522pgk.513.1664765112813; Sun, 02 Oct 2022 19:45:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664765112; cv=pass; d=google.com; s=arc-20160816; b=CIcEHTyRFI+uewtulsUQK2U9GlrPVUPYJu8BxmHs8aUyHbOmh9ZLYjhExLspktoBpx qlvAwmU7xfVajfKNMQNl528nCI+s0M5rEeEzm7Xs0NcmchuIWylM0pl8fLmc22cPW4/Y 7PdBNJdI5HJ3L/LH0pOTDBsmvwPouDByB3dj4IPvka5brnLvKvjOa+vVUSmnV0LZAAPs 44yLqtgkFiUznK7lEA0hVNmu1haWDOh7YcKBorp71OtHyPwsA4VLphNMSTG/bPGofi+0 UyhI9w2ofySejzBG9z+1BSKPXCz+wANQV1eeGDJEIDw1lY54ctR6n8Z+tLlEtKKYcwzi 9IQg== 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:to:content-language:subject:user-agent :date:message-id:dkim-signature; bh=DJF7lEU29hulWOvjccvil+fYO0JjpejxOmTyumoNdbo=; b=XxvhC37iQYoi45gK9wehAZI72qtSiBV0FxtLF8pLC8wXD84oVFROEFg+6hqHhUsod5 hSg8VGFWJL1zw+hpf4lor8Dh02+xAqEC/2OrEvFdQswoOC1SGrlxnigsH9csiNwMoCCg YEvGM4IpS7+XICcatap+aEjSdLq30aBv/vmV/6VI0P968VwiKTVggZLBNSGtwOaNvJxT HDVenb14Rcxp3bwV2gxGF5zsIe56TlJ8iWO2UUCc7ks123E9eqV4LsLkPHTjH3vHJNgr B9cwAEyn8jOhXaV34Vq7xOJLej1zaOYmDoLSORRozP7b/f44mK/hENExzrzPP44dDLma Bugg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=MVHD9lkz; 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 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a170902dac500b00172696f35e1si9866100plx.482.2022.10.02.19.45.01; Sun, 02 Oct 2022 19:45:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=MVHD9lkz; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229530AbiJCCHH (ORCPT + 99 others); Sun, 2 Oct 2022 22:07:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiJCCHF (ORCPT ); Sun, 2 Oct 2022 22:07:05 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2129.outbound.protection.outlook.com [40.107.93.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01E9932B8F; Sun, 2 Oct 2022 19:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KVUGOZA2Aj2BLlEsXeqPPukUv1B0k7gm6Xupia8A0cLFqVbxO72NRuJUT/Fp5hgA3Ad/2tIDqmeg/+k2leGkRE2kmK2a7Xn7b0MsAyTzhdoLYklOn6aj8JR4t44BLeZeHZsOMW48eNUf5u0xnSwIvtqXT85/vBgxKoPps5OS95+6uTv5NSihSACsyJQf9SjGTlZ3skNc92AgPuCVmXzfN6A0EQs6l4zcubkylvWMas9nporPpuNTTthuhk38XMVQjVYmyPudl/jDf1PvgcwWktEXkVDoueU8RTZuuYda1953FlGTQlGUNn4VxH3+NyqiUtL2EDLALXxCyhqA056tng== 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=DJF7lEU29hulWOvjccvil+fYO0JjpejxOmTyumoNdbo=; b=AGTdC/GTAxqBekv6M/djp7t97yJkJaitcCEwxC9sgwuen6boetBp5OBM9IvquELQGkYgqKe/A3J64+ms4CA85xwwBc5ZAWlhxKU0NIMnQ97rSBO9LiJ3Mr6h4Bg6jdxsgxEFQqxdMqeBddDLh5lYguDraV7W6S4j8GolniW5a1glk6nwCOt7xaZBx3Trf8U7MbTTRIyuL5uwuS8Ycy44xZlMf5tkFa0y7LQnkbXBAuUzaXL8KWn66UqcQfjLTlkWwZHQAaSpjp8Y0dTpVsVct2JF4fD5ye7N0p3k/aF4OxEuLf37N6isq7FmsWU24+GsJ5o9PZ7VxAwPzMLvm8bfMA== 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=DJF7lEU29hulWOvjccvil+fYO0JjpejxOmTyumoNdbo=; b=MVHD9lkzP8dbRH5dSM9xKB4MN3+XJmWuV6ac7eSrbudv0RsKA505DPYIhY/1vbzSuxBibeqwzPS4U5iTg9zVzOT0hVQq1fQrUtWjGkQ5myq8l+TCdTPLxMGrfQMGSAFSGSNhcN6UXyp94px+XNfIpptCnReM0d8fctn4WBGBL9k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) by MN2PR01MB5776.prod.exchangelabs.com (2603:10b6:208:191::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17; Mon, 3 Oct 2022 02:06:58 +0000 Received: from SJ0PR01MB7282.prod.exchangelabs.com ([fe80::7d50:e907:8e2e:1ff0]) by SJ0PR01MB7282.prod.exchangelabs.com ([fe80::7d50:e907:8e2e:1ff0%3]) with mapi id 15.20.5676.028; Mon, 3 Oct 2022 02:06:57 +0000 Message-ID: Date: Mon, 3 Oct 2022 09:06:46 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v9 3/3] i2c: aspeed: Assert NAK when slave is busy Content-Language: en-CA To: Wolfram Sang , Randy Dunlap , Corey Minyard , Rob Herring , Krzysztof Kozlowski , Brendan Higgins , Benjamin Herrenschmidt , Joel Stanley , Andrew Jeffery , openipmi-developer@lists.sourceforge.net, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, Open Source Submission , Phong Vo , thang@os.amperecomputing.com References: <20220929080326.752907-1-quan@os.amperecomputing.com> <20220929080326.752907-4-quan@os.amperecomputing.com> From: Quan Nguyen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR02CA0004.apcprd02.prod.outlook.com (2603:1096:3:17::16) To SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR01MB7282:EE_|MN2PR01MB5776:EE_ X-MS-Office365-Filtering-Correlation-Id: 1490bbca-1b1b-44cc-8ddd-08daa4e3f312 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fgsekCKofs+++yhDCMllUAGltlP4IMItFEhAImraOsg3FBdMdx1YTiuL3ESPkofEb8341n2KfQzFFbu/SdiMZWUfKNwJ7G0x76liEcCGlNP0C98KxhVXSgAGMTM07NbaJFbAl7OqjmS3YOARRvCnP2Cijk5PyRMFgbHARITLL4kXqoCiLqeuxKnWq99Abvaj1qgIIoL6coxl588R00tDkWm323GHR1HBsITvz63++fDHlCY/UV+I8hpQNRENuU2BE+/w7qrzn1W4/N4lP4UCi5S+ZP7G67FxWn6Rb74M2lkXCgpjx9NAL3gMAg+hZp0XdJoLZvVE81XAz81ydhwSgKJ3aybiqQ7tGngDBlIDQtNaghkSqZAuG9QPzmxTUrMXYZUTiekrxk6j4Ly7ZfBw8Vy/JMqqd+RShHekbig01TN0IXHNThC8Tm/nrHYP8LFcEvV8HhCRJL6LCx3LzSutIp+yMcwQX7uMW5ZZxltOzfbvZ8AlQ1MqjOiBuzkqD+wwfPriAGy2vFeB+qvrU/AjrhuOEhDfRHFCmh6elNag48r1/Uwe0Tu6wbMu9diULpJNeI0gHRP+ED+XTkjeAoGaaAlX7prlD/Y5we5XuKbwtFSbTkmMS/BBF53GRNCTFY+vhuKpvN5pQ7zuRKhFf2TJtDlQGMOQlN60qA5t/pMNH1pcw5+JJ+AdSPhM9RZeGAGDl85ucn6ee1ThXkqBlK/Vj3BZfRWiJq+wwqAsSIZw/NDJkaUBQkuBwd67OKEkDLSv8nvHfcUeP3+4uEGs3W2sgQ+gnLKNSDj7cXNr2aov7yfcSnJe7kr3Lo4ujXEVZ17U X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR01MB7282.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39850400004)(376002)(346002)(366004)(136003)(396003)(451199015)(31686004)(2906002)(41300700001)(7416002)(8936002)(5660300002)(110136005)(478600001)(66556008)(66476007)(38100700002)(31696002)(38350700002)(86362001)(8676002)(6512007)(26005)(6666004)(2616005)(53546011)(52116002)(66946007)(6506007)(316002)(6636002)(6486002)(921005)(558084003)(186003)(83380400001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WTlHbzZKWnVXdFZ5ZDlBbFcvR1lNekY4NVd3REl6cE1jR08rcGo2bGFneFZP?= =?utf-8?B?ZTFrTy96Smc3UHFBU05OV1JxazZXT3dGT3IwS0p3RXo0RlpmWHZLOHR4OUg1?= =?utf-8?B?VmlubFQ2M3hlcW5xc05EdnBiOWt1V1RJNU9YT3JsUkZRTHM5aVFrVDhxRTRG?= =?utf-8?B?Ymp2YTFpb2NyaHcrdVFLVW5QVlVTU0RYSVFlay9JMzhrTmZVb05PTkR5NDVi?= =?utf-8?B?MytKbCsvK0lzeHZ4S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WTNjb3VDUExz?= =?utf-8?B?a1lBOU9udnp4TmY4dldwZk9DL0ZKLy92RHEyWFJhNWhMU25TR2NMZ1E0K2xB?= =?utf-8?B?ZkgvVHllZGtvdXIwa3U2SGpQWG5aWGRDbEsrSmtJa3lFNTdzK0NxRFZvYzd4?= =?utf-8?Q?I+9o9dOAtyO4OZC4xFXBghQ=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1490bbca-1b1b-44cc-8ddd-08daa4e3f312 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR01MB7282.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2022 02:06:57.3644 (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: sHYOweJKfXXSqA6xmj9OR7zcYXRnhtWyowJ4eH446Z5FtYN2k1dz5bxLLAtOqx7hZ8bXZOzPjd/OELqPN8sxV2jZGn/LZVHsRY1rj0ECQUg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR01MB5776 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 On 02/10/2022 05:55, Wolfram Sang wrote: > >> + if (ret == -EBUSY) > > Since we documented this: > > "+ 'ret': 0 if the backend is ready, otherwise some errno" > > the code above should be '(ret < 0)' > Will update. Thanks a lot for the review. - Quan