Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp817810pxb; Fri, 22 Apr 2022 11:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz48o+zWop6YTuIo0MEcaPdwt7G4TpeZZT7fug8QVFFze1mzUBZPPJGT22rqj6zj9Jk3j/S X-Received: by 2002:a17:902:bd93:b0:158:fef8:b4fc with SMTP id q19-20020a170902bd9300b00158fef8b4fcmr5858487pls.48.1650653375498; Fri, 22 Apr 2022 11:49:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1650653375; cv=pass; d=google.com; s=arc-20160816; b=aRp6vgmy+lzjPy2dvS9IY730F/KJe/ZHJgx+HZ4FoQ1ZvRFEFHisTgmWudGJ6VQ+zO O3Fm/QOJj9fnJ645HMKdDTiafTucaR32an9l+L54ZccPMCKdfsD44xwa4wyRlq6MXHeK sH49vLZGV+508AZlu85fkAAUpxc8oRc/EffGAgTTzSFlFdEnKcNShscKzBGQrjKilghl SksNVK02XJEDtJ4+xZrtnmRK65j3THj7Wdj2nn7J+7m2z6PLxb/HyBLVmesUmmrakCee 3iVMoMlsDJZI2SqT6SN45cK3Sf/LxmUsVAqs/Zwrv2kkCN9YVPlVUPJ7LvlyhoMkwpHw SqnQ== 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:references:cc:to:from:content-language:subject :user-agent:date:message-id:dkim-signature; bh=O8omORoRY5GJn8BYoDOVegpYoOZ845Ck39hesIml8I0=; b=vvjlHvhJgN2cdlKwPuLKYa3vLRY+/2yvBtLB/M5funvV4Y+wApCSFa0xyI8JZefmVh paeoG50rtXesVcHhj3mREFEUyr0rfhPbo+rI8iALXYXJdX5JstRjrcaY03Oh5Sm+h//u W3mEnwdHYYKZ4grAmTTT03zta+bgrQUpBrwuwDTzcfjeMI9fAuyMYoBHwT+0kIRLqNw2 cM9ExrEqg19XZjq0/N58+vM3mBvq8kjgISWuHse4+YeZgbTf45IbaCkX9GBX6SHYnEZq 9i35l8D/lA09r0kuzyXbLM5kfSul+GZpCkdlGulB8Bt1vfjf5YGpj6KtFuBA1HjIFjet EIaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b="aRv/LgyZ"; 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z16-20020a170903019000b00158b5b65721si9690757plg.321.2022.04.22.11.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b="aRv/LgyZ"; 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:18 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 (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 364EC6339A; Fri, 22 Apr 2022 11:15:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443940AbiDVEU1 (ORCPT + 99 others); Fri, 22 Apr 2022 00:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443932AbiDVEUR (ORCPT ); Fri, 22 Apr 2022 00:20:17 -0400 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 6A6664EF49; Thu, 21 Apr 2022 21:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N3f3fFFR5nCz79c1agStHeeCjzsDKBBXM5zEy+LsaNsB5ZzEysxNzbVjlx4mTI86h3egqQzcieUsA/LbJG1h7bNZLj2MGrmlvjl2FbKcI6BgJvh78m1c9QpGDCFvyGmoyehPnVFvtsWPpshdqLGprm+7KSc1gL8bxY3fyeAKNEujEiwctLE5kYwhinZzwaHiXSgfptIWd3VOo5MWdAk2YV/IPAV3CtmwacBnRI1f8hLSBqQ0cN6bRJPr/kKQ6qM0JX5RJURyKBEYZWJONCSOPOxIz2fK2O9kKZnLQGm9HkhNgcjSrGhxjWyBncca7pYNESeJPEL+qR+CRUdrcIEj2Q== 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=O8omORoRY5GJn8BYoDOVegpYoOZ845Ck39hesIml8I0=; b=nCCuic6/bpsWGS4xWZMhp64GhjH9rBhxo4wmEnDh89vgKOCQbrHk6j+Af6MTmEFQQPJjrfyjcoBoRFMFsFJ+iBHi1EFLcuj2dMcVKReovbL1Nq1aj+qoYYEL8G9QQjuC3IGLS9QPGmdbMyGB7uO4Gmd2pVwIDLRm12lkpa27WPaH0u4ryR1fduypxjSEXDutB4uP0VcVrbBCm9DGT33j94Jb3gM9RqKjoJeHfg9zEp/dyZfm7lnc0I4wp6heGaGXKn8njcaHmWKq0yse0qwCB3KYE4vIAJCnaLU7rUQLj42R2HN98+MR9b4LS5Khe2PPtfwf8D63yZFd1bccHnvVZw== 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=O8omORoRY5GJn8BYoDOVegpYoOZ845Ck39hesIml8I0=; b=aRv/LgyZRiMp8eWlgbuny33IH7+XyS2hUDcKDSzbGTmHfp3DXbPUjyIncE16OSNfp8x03xVrfhR0ZLeRAv++via6wpPr0Rx+9KQ5l9Twjo0YwfrKIfnifaql5gYAj7Zmn+/rxt/GvwByagwQPYuZvCR5GjySXX7MoqsyitCsl+I= 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 BN6PR01MB2644.prod.exchangelabs.com (2603:10b6:404:d0::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Fri, 22 Apr 2022 04:17:19 +0000 Received: from SJ0PR01MB7282.prod.exchangelabs.com ([fe80::319b:4612:e6f4:f22c]) by SJ0PR01MB7282.prod.exchangelabs.com ([fe80::319b:4612:e6f4:f22c%3]) with mapi id 15.20.5186.015; Fri, 22 Apr 2022 04:17:19 +0000 Message-ID: <6fcbe1e0-b011-7537-b61b-50bfe15f0ce5@os.amperecomputing.com> Date: Fri, 22 Apr 2022 11:17:08 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v7 3/3] i2c: aspeed: Assert NAK when slave is busy Content-Language: en-US From: Quan Nguyen To: Krzysztof Kozlowski , Corey Minyard , Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery , Brendan Higgins , Benjamin Herrenschmidt , Wolfram Sang , openipmi-developer@lists.sourceforge.net, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org Cc: Open Source Submission , Phong Vo , "Thang Q . Nguyen" References: <20220422040803.2524940-1-quan@os.amperecomputing.com> <20220422040803.2524940-4-quan@os.amperecomputing.com> In-Reply-To: <20220422040803.2524940-4-quan@os.amperecomputing.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SI2PR04CA0010.apcprd04.prod.outlook.com (2603:1096:4:197::11) To SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9a2a244-7436-4722-5285-08da2416fd95 X-MS-TrafficTypeDiagnostic: BN6PR01MB2644:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0UHUR0Q04PjPsE1LO/jScVbtQ9hQ6MtgfRdmM+icpNFwpBHTMN1mYba3TC3s4F8P13SVUTHYAYCweEiJwQN2vlXYOqIZ5D3jpoTAngOFja7qeU3sMLFsX/cNAxxzmaH5PIiDw4fywqcWEN5Rhf+GXt/zDnLUYeEWJjvjg7ekc120eOkWJZMy/IAVQvtQiIRbt52raKh+wKiH7p9vfKygS2JBlKm4I3RT1OJf4uOTSiEs/iZxqFBKW5sXzv1lCL3ssDCnaF1Wogv+b3a/MK0bRMC71QDIpk0O7ctTndRcVM2ypeES+klAxdjV1kLFshysVJtg0f/hnnGEJawtVOPfKsRk/FyyorMf7IVY6YyY9Cuw2H/lpQjUroWHAUR+dmqxAsQ82mMhzDroS5SeU2xSnhLrFoxCHzi7D5T2sdX3UActneXRrKW1PyRfrPdGdq8ApIpJXfMRFozphsJ289SMiJFB2vy3LGEA0V7LHQEyPBb/8A8HBae0EQ47eCT4lSY8pQauzl6pmFBLChnK0Wvwj2CMzkKTdo3aDgSUaxTeET74WG0+138gvFqYIYwuk9wllsaYEyhdhzfn4XUKq3RdirLdAvuTwV4aRtjeR+3jMkmGevdq/3xB0aTQbmaArj+Inb20CFRVj/zPYnF2TVAwgCz0BMp950fCz9PUBAV37skkBWB1zJf4C/LmsZQ81N6Q+X7azZBzbFlMlrpFqNLGg0HAljUJpp/BkJvtamHPwtGi68GrNJiTfqymBkcdFNyf 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:(13230001)(4636009)(366004)(66476007)(31696002)(2906002)(86362001)(316002)(6486002)(52116002)(6666004)(8936002)(508600001)(38350700002)(110136005)(6512007)(83380400001)(54906003)(66556008)(107886003)(4326008)(53546011)(921005)(6506007)(31686004)(5660300002)(186003)(26005)(2616005)(66946007)(38100700002)(8676002)(7416002)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZFFnZ0YxNUVmeGFlbGRvU00xTWk0TXJ5QXhIdDVRWGo2Y3l2L0tSNzRFcmcz?= =?utf-8?B?TlErb21NbndySDRqWTg0ZW1KWkRYUU1FbWNGT1p1aXRFQlhZaVJkM3lhMmJ0?= =?utf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jBJdVUxd2g3Q2txM00z?= =?utf-8?B?bi84V3R6VEhhZHROMENPZlJFVFl2Mk1zNlFrZnhzbitXdzlIZlVvd1pDWlB3?= =?utf-8?B?dzI4UUxtVDNkUk5sUWoyUGQyKysvWllCMWQ2aTUxeHVSQ1kxSk1VQkFtaTJw?= =?utf-8?B?WFU3bUczYWwrN0pOZlVLK2NVSmd5ODVuR2hTUlV4QVUyWTJpMFhqR0l2NWVt?= =?utf-8?B?Y1NwMUdYdnlPd2JGaVIvQmNaSmpRU3E3U2EveStwZS9US3JtcGE3OGdHRVVV?= =?utf-8?B?aFZlWUR4ZnpVRCs4MkxlWS83cXdoV0g4bmdjMURoVlhwYjdhTnhvN2JhLzB1?= =?utf-8?B?WW9tTm55TWhOY24rUTA1Y2U0cVJmck81aHhSSjc4b3l2TnJoWTd0bjMzWGJi?= =?utf-8?B?N3lGUEZta0w0MTVvZ3o3OWpMcFozdzNXUU03M1lMdHZMY25Td25Hb2hnM0FH?= =?utf-8?Q?qhhnmajVyYEFzNPaP0W+k5OfO2aADM9i5yxZu?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9a2a244-7436-4722-5285-08da2416fd95 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR01MB7282.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 04:17:19.2084 (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: A9DWohszdBS51oM4HXuxEEqDFvNzCilHFO7lZe4OrVXcC/NkbWmtPk0qY/Qv4lSuCNBiJ7zpA4nsU7XgbU5QBi8qysVTzQh4K7XovZ6L7H4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR01MB2644 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 Added Krzysztof Kozlowski as I'm not aware of the email change - Quan On 22/04/2022 11:08, Quan Nguyen wrote: > When processing I2C_SLAVE_WRITE_REQUESTED event, if slave returns > -EBUSY, i2c controller should issue RxCmdLast command to assert NAK > on the bus. > > Signed-off-by: Quan Nguyen > --- > v7: > + None > > v6: > + New introduced in v6 [Quan] > > drivers/i2c/busses/i2c-aspeed.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c > index 771e53d3d197..ebc2b92656c8 100644 > --- a/drivers/i2c/busses/i2c-aspeed.c > +++ b/drivers/i2c/busses/i2c-aspeed.c > @@ -244,6 +244,7 @@ static u32 aspeed_i2c_slave_irq(struct aspeed_i2c_bus *bus, u32 irq_status) > u32 command, irq_handled = 0; > struct i2c_client *slave = bus->slave; > u8 value; > + int ret; > > if (!slave) > return 0; > @@ -311,7 +312,9 @@ static u32 aspeed_i2c_slave_irq(struct aspeed_i2c_bus *bus, u32 irq_status) > break; > case ASPEED_I2C_SLAVE_WRITE_REQUESTED: > bus->slave_state = ASPEED_I2C_SLAVE_WRITE_RECEIVED; > - i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value); > + ret = i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value); > + if (ret == -EBUSY) > + writel(ASPEED_I2CD_M_S_RX_CMD_LAST, bus->base + ASPEED_I2C_CMD_REG); > break; > case ASPEED_I2C_SLAVE_WRITE_RECEIVED: > i2c_slave_event(slave, I2C_SLAVE_WRITE_RECEIVED, &value);