Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp40412lqp; Mon, 10 Jun 2024 17:34:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI0ZtDM4ILfPgSeWlQfKWJSwCX9qf3vVLwNLSkazx1MU5n+LRM50RU1lQD4y77LYjn9JeZ/Vao+czLkoS/Ka7yxJBbnnL/wth0az1FyQ== X-Google-Smtp-Source: AGHT+IETLOmrsOu7i/2pDv/UI23khpNQyzL4u5yEyhjx5oFwpumffYQuQ6tckRlfncnOdMWnMOnR X-Received: by 2002:a05:6a20:3d83:b0:1b6:d92d:8012 with SMTP id adf61e73a8af0-1b86bdad4a0mr1646594637.13.1718066052906; Mon, 10 Jun 2024 17:34:12 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e5bffcc82esi5109459a12.661.2024.06.10.17.34.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 17:34:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209132-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@aspeedtech.com header.s=selector2 header.b="mTkir/+Q"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-209132-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=aspeedtech.com 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 810D328301C for ; Tue, 11 Jun 2024 00:34:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C300563B8; Tue, 11 Jun 2024 00:34:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aspeedtech.com header.i=@aspeedtech.com header.b="mTkir/+Q" Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2110.outbound.protection.outlook.com [40.107.255.110]) (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 B7D524430; Tue, 11 Jun 2024 00:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.110 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718066044; cv=fail; b=FptVTtqlAl85QHUOFs1ekYVTDAy+vBYoPwwngVX/Mck01f0nEhOfkzFzRsFLwZwM6957o230buTEHUcNeiISrvHDtuFBWYIDvWxbPdDqIASJv0famzVMa6Kubiz87LZi20J9N/EGC7s+phpiDi7wIxXs2Q87WAJ9AxRkQ63ALn0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718066044; c=relaxed/simple; bh=VylGxGqxZOWi+1a0H2AHW3qw5g8D7Few+DQPXTTP9Hc=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=mRUKMFW0R+alC5eNRpURBjlZvU56x7HLrtCWb1rlPzJihBD7V5FYc0+Wm+JCY1XraBMS7zn8J2pCwzz0gmWXKBsrxjC4jT2baTxr5q5aACB4dPIruvDc1mNsRUQRDNuIMJ22pZ0wOMcDY42qPQlTljdGANF3CHNqQDyTXqR2oAI= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; dkim=pass (2048-bit key) header.d=aspeedtech.com header.i=@aspeedtech.com header.b=mTkir/+Q; arc=fail smtp.client-ip=40.107.255.110 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JjZe20hLpXg9zBIgiejhxm6p2bCuJKptckZ0ZXHrOL7a8rN7zAl28eaM6CRjGYuH5ydoR2Jjcf1CQlkus0CI2SlF98HzaCaMchinoEVPb9SqqyptjgU0yUPN7gT8ZpINCBir+ocn/ObYHnBK5UlapbbuGhjI2WmmQVGh+ZRWP8anv2Vlb2Unl4tFa8Gn/rMnLxdPCk/A7vekEHHK+qsWeoeunP6aJI32X/kDLdv7KsOkdR3M/mr3qQK/eA1YuOlVXLpimMjgPe+zcryg5qu0w6LFk+4XQWLjKi1FOOp50e8C3aFlPSjCM0+pAXdTd6+qeIZuVHy6nEbwGJwEHzSEpw== 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=65tq8HCRxnWnu8/ZbAKN1V1DC4hzc4Hz02V3fipdovI=; b=XnfC1KZBzCjzQKtAX18MfRv65fBKqx+VuOgodTkx4H4P/99/1dlghrchD1b0rp+koPM2UAI2rIurE2YyzqKGKZDRJHRSg0AAU8Doi8++3tqEM4RAnc84u6sYhPYL5wmYAo2UVrYI4GMnLN0V0wPlF36qC4uevzCaMdon9fFqVmRfjrzBIuI6AhdZomZinDyjKBPooMgJRgN7sJIGOUJVYBR+6SmWGOTj/2mQ54kXV48Wk9EWckkNYiPy1+M/0Wrg/CRrtWQcpb2Y3RuvyJxKpn420vkIuWPwn1coMWRd/0lHdoGrA7MVWBncZZf+0JmdbMLr8rP5fS8SvLN27JxoSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aspeedtech.com; dmarc=pass action=none header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aspeedtech.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=65tq8HCRxnWnu8/ZbAKN1V1DC4hzc4Hz02V3fipdovI=; b=mTkir/+Qb4f87E6REDK9pOJkHXm3weTQ3kMYXc1YMOFwSKet+bCivZlFDaCPcOgG1fBe1WIfhip15EwV8bgPJoFVhQSZsyCDXdBcEZR8tJlB1p8MBRcD88UxjZF63LnS554XHmpFw6M5xBL3uxFQYMMO6OT2T9eZpkyiHPFPO9BvK5LATI3++NB/Yk6t/C092kLehai2M28Qckt8DzAdurBVdeKiNiwUhsH4Z7bpXu/H9WYSJV6EYHeG7XNFqnSOO39rW3V5oUiHsTPNjNouiPxxH48Qp6tj2+vKEHTR3+LyH77oAZgpcEnVwkURp+aWCLxfbW95+VcuUKl+AZo5XQ== Received: from TYZPR06MB6191.apcprd06.prod.outlook.com (2603:1096:400:33d::12) by SEYPR06MB6635.apcprd06.prod.outlook.com (2603:1096:101:177::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.34; Tue, 11 Jun 2024 00:33:50 +0000 Received: from TYZPR06MB6191.apcprd06.prod.outlook.com ([fe80::cc07:35e3:9143:c8e2]) by TYZPR06MB6191.apcprd06.prod.outlook.com ([fe80::cc07:35e3:9143:c8e2%5]) with mapi id 15.20.7633.036; Tue, 11 Jun 2024 00:33:50 +0000 From: Tommy Huang To: Andi Shyti CC: "brendan.higgins@linux.dev" , "benh@kernel.crashing.org" , "joel@jms.id.au" , "andrew@codeconstruct.com.au" , "wsa@kernel.org" , "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" , BMC-SW Subject: RE: [PATCH] i2c: aspeed: Update the stop sw state when the bus recovry occurs Thread-Topic: [PATCH] i2c: aspeed: Update the stop sw state when the bus recovry occurs Thread-Index: AQHasl/7kNWQnBw5T0ayJZ/33ciwnbG5/HuAgANZ04CABHIQ4A== Date: Tue, 11 Jun 2024 00:33:50 +0000 Message-ID: References: <20240530070656.3841066-1-tommy_huang@aspeedtech.com> In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aspeedtech.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYZPR06MB6191:EE_|SEYPR06MB6635:EE_ x-ms-office365-filtering-correlation-id: eba0cc6d-9940-4193-0b3c-08dc89ae2a44 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|376005|366007|1800799015|7416005|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?y3anJAzoWdiBB3OILlvy77kjKLVLcYTUOlUoJk6jYudFS/xV8GyBDWJN8eA9?= =?us-ascii?Q?M9/lxHkZ78SDCAm3Lt1FyKW7e/iC4bt7xoe5uy6ho0RF1xehVTeYUScgewmf?= =?us-ascii?Q?uQvyXpycYCy0eY2AlWRrj4oS4oBOSClbME1cmU/PK9nhP7RiXG36RXnfy0yv?= =?us-ascii?Q?Lt1vS7pPtZ+mau2FkQqVui/zVLz3ByIUDpmXmWp9JLoVkPyNSwK+fmslXrtz?= =?us-ascii?Q?9N++/9Y+V1DEz93A7yZaY3kc+v1hJRKXviKPZbblQyApdcNjUQiCZRreJC74?= =?us-ascii?Q?kmjV2UQB8aelHfHJCZwZlq2GmUYPA66gw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ykQ6aw9ham0i5XVEBce2ykkFT61Z/v5Hu0iaMQtWth5pMiyjhuS?= =?us-ascii?Q?VAVngoRLuAygBP4rxC2CDf2un6QV94qjlg7yvVgcTcxmj9Mu5lBj5zN1Kxjg?= =?us-ascii?Q?gyCvaieRMnFGAkU8AtsFQq/IyayIp1edyOElyQ8ezadQZCMruaCL8b9zGwes?= =?us-ascii?Q?1SRTg4o=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB6191.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015)(7416005)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XJcmNePDsP/Ki2SSoguvQKitkUo10mR3AHkRFUrOvuxjld/y27bhpT+NzjFa?= =?us-ascii?Q?+JGXiTDzq528se1aBJ1yYUsz1rkd8P57s5GLoXH0PTotY+dm4z9LJnGYGeyI?= =?us-ascii?Q?x6+Rd+uyCdVDbmlm9uqhhA810mKaL+laTPCk+b04kTLBZMvwvhy8jQSyR/s+?= =?us-ascii?Q?QY3cYeO18LAIu7Ocnnoh7v2Bam/cZpFkSfakZ7BlRG2Bn9jEeyD2ZFHKbFA6?= =?us-ascii?Q?qJ8/oiKnXC4DNHz8BP6MaNPjXMNAU73c0MxYwFrvNu5t0BhrF5V6CEVjO/2b?= =?us-ascii?Q?P8fVihfGpkWYgSjn+s+H2Yz52oHXcQZLX78Ca1MwLl7qaTVE4SP0GWfWbUig?= =?us-ascii?Q?d82bOHvUae4S0WvIGcoUxT8QBpA7as4vtv33z6f2bBQoL+tYyOe9srBJ6Wx6?= =?us-ascii?Q?5hXkWAjQEVTw55FADVOKPFRbe5qXv+g6sYNQYfLE1b0S7UkF+slssqOHhnyq?= =?us-ascii?Q?LtRHh8QFCq5ZzItbdhmPz47O4d4E2hnmfDSW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zz5/hA9Fy7px5WdPysiAPpnT+NQ5ovug38iww1u16x7pdcX5xJhRTL+c0?= =?us-ascii?Q?kd6lUHYfo8i2oZSugWG1zu7ICvgudUucGgHHhKkDmv9G+omam4KgZSFMSY6S?= =?us-ascii?Q?EmASPRpjkGQ4gLhp9owQuao57ZEJgtrnjfIPIk9qjUswdA2+A1kt6zQiit3e?= =?us-ascii?Q?mhe04AYI+h39Y2LYoFpsFshiK9PoKWx4+n89sJ5bPpKuCuP4NZgUNOPows1w?= =?us-ascii?Q?SQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: aspeedtech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB6191.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eba0cc6d-9940-4193-0b3c-08dc89ae2a44 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jun 2024 00:33:50.6114 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43d4aa98-e35b-4575-8939-080e90d5a249 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /oj8X3aVMHSQV1/H8Mv26wtlqRzu8sQDwbaUw74v9cs/98wCBMg524Yzn+enAkVAdXjkykta3G0LjTAAa0EbZzcxXExyI3Yr91jLaaeBY8g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6635 Hi Andi, There is a problem to move aspeed_i2c_do_stop() on top. This function is like with aspeed_i2c_reset function needs the aspeed_i2c_= bus structure definition. BR, By Tommy > -----Original Message----- > From: Tommy Huang > Sent: Saturday, June 8, 2024 12:38 PM > To: Andi Shyti > Cc: brendan.higgins@linux.dev; benh@kernel.crashing.org; joel@jms.id.au; > andrew@codeconstruct.com.au; wsa@kernel.org; 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; BMC-SW > > Subject: RE: [PATCH] i2c: aspeed: Update the stop sw state when the bus > recovry occurs >=20 > Hi Andi, >=20 > > -----Original Message----- > > From: Andi Shyti > > Sent: Thursday, June 6, 2024 9:27 AM > > To: Tommy Huang > > Cc: brendan.higgins@linux.dev; benh@kernel.crashing.org; > > joel@jms.id.au; andrew@codeconstruct.com.au; wsa@kernel.org; > > 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; BMC-SW > > > > Subject: Re: [PATCH] i2c: aspeed: Update the stop sw state when the > > bus recovry occurs > > > > Hi Tommy, > > > > On Thu, May 30, 2024 at 03:06:56PM +0800, Tommy Huang wrote: > > > When the i2c bus recovey occurs, driver will send i2c stop command > > > in the scl low condition. In this case the sw state will still keep > > > original situation. Under multi-master usage, i2c bus recovery will > > > be called when i2c transfer timeout occurs. Update the stop command > > > calling with aspeed_i2c_do_stop function to update master_state. > > > > > > Fixes: f327c686d3ba ("i2c: aspeed: added driver for Aspeed I2C") > > > > > > Signed-off-by: Tommy Huang > > > > Can you please add: > > > > Cc: # v4.13+ >=20 > Got it. I will add it. >=20 > > > > > --- > > > drivers/i2c/busses/i2c-aspeed.c | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/i2c/busses/i2c-aspeed.c > > > b/drivers/i2c/busses/i2c-aspeed.c index ce8c4846b7fa..32f8b0c1c174 > > > 100644 > > > --- a/drivers/i2c/busses/i2c-aspeed.c > > > +++ b/drivers/i2c/busses/i2c-aspeed.c > > > @@ -169,6 +169,7 @@ struct aspeed_i2c_bus { }; > > > > > > static int aspeed_i2c_reset(struct aspeed_i2c_bus *bus); > > > +static void aspeed_i2c_do_stop(struct aspeed_i2c_bus *bus); > > > > Can you please move aspeed_i2c_do_stop() on top? Doesn't make much > > sense to add the prototype here as there is no dependencies. >=20 > Sure. I will update it. >=20 > > > > It's different the case of aspeed_i2c_reset() because it needs > aspeed_i2c_init(). > > > > > static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) { @@ > > > -187,7 +188,7 @@ static int aspeed_i2c_recover_bus(struct > > > aspeed_i2c_bus > > *bus) > > > command); > > > > > > reinit_completion(&bus->cmd_complete); > > > - writel(ASPEED_I2CD_M_STOP_CMD, bus->base + > > ASPEED_I2C_CMD_REG); > > > + aspeed_i2c_do_stop(bus); > > > > The patch is good, though! > > >=20 > Thanks for your commects. >=20 > > Thanks, > > Andi