Message ID | 20240819-i3c_fix-v3-5-7d69f7b0a05e@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012037.outbound.protection.outlook.com [52.101.66.37]) (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 6BC0917ADF9 for <imx@lists.linux.dev>; Mon, 19 Aug 2024 16:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.37 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724083346; cv=fail; b=cGSM78c1nbpI6FrpBWoodRPbnLde00OFOOCgphU1JFjSoGUnBnk2LL3L9XoRxrSwUNdsgvw5hisIaZCuQahbVa25wV1wjaeaV0wl1ek/01TLvBJxY/NUdwsd7si6ClGr4rPUkToFcYC5vIgReCef+bUz7EvyrKv+o/idAiABoXk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724083346; c=relaxed/simple; bh=EgTA/bzPVGwsyEemXX3hWkQUEBTDZOU6gFrO4erNl9A=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=VIbq2F99/XAmtuL9CI/9auNaayIG14VDWyovBZmB+7KgkrzH7VrtpevRMBWuP0j7OLORNMyoRyfz853Fq1TZoULmOnVSocmoQA/Km3+p2F125l2dex57D2xOPz51qjlXYbLrx/zRgulz9XFhT8Dbix0mxEemUTEWXbgQU9thJwU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=mXhZYmXb; arc=fail smtp.client-ip=52.101.66.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="mXhZYmXb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ctQ0csCh7jlZ2GGofr0z7q/TZdv3lqqyVJ47ZjZlWtpVR9jQlPMX34FK7v/wJTNobp4u9OGeLIg9JCcAx44jCUckIXGVySIfm+OY8iiJ9NsSUhuLmFAJQBDjeKPnD1qTMThrCH/SKmKAp79a2dpFFVfR25rkrgeEoJA1LH/2Y3rIvXpgbT4iOKoDYEjNZcDQmTFGbneqIjsBh1OGFClXuuwJdsmQgpM4O9ciRNb9gWHcAwhcd69iqvkVzImCEcbgZ0uulXtA6IZXiqQM5KDawsnC610d3v5FWvDaLohTjJueML/eExc6i6RJLhbGMvT6wU7v58BhtDKeVVvssm96pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=PZHzogEyoKA0FrCgQ8jcF7EjjYfhLpLTAtbn8jWUYd0=; b=tcxdAw4f4CUFIq9bFaa+Z0p0lIPUddq86drQQaYv/eYm4VQtAhw68hBJ8txmd1ex/fEd1SESzzXrg6+ImN3/apmDWX24INnOhPW+V6f+Q9EiERb+ydZjQ2nB+oh+m4UXHDMpdrCSB+XJZLxGzVxBDLbVES9Zfhy4NoQ3OnXvEKT/hCByqJBcqfyXsa436Kb9s+78EIHfkj3GUR6+0BVX6bQIDy/AAyBFuLffhtTLO6CzPmrlRbNrVzhVTrMN9cr8QVM9JrxSt4YSGDpNkaaDi//FDX1HKDobC+a6W/3h2qimlmicu2jH/n8v4CXl7C3xyDoES2Aocsn2E6CCDGnyXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PZHzogEyoKA0FrCgQ8jcF7EjjYfhLpLTAtbn8jWUYd0=; b=mXhZYmXbRp7usO6DxBGlPS/aYf3dpuVRLjOaErNv8dMV0ePfdcpMD6DpXP6XY1ElHcrbjYs3OU/nBjSTHJuF1QtKDTU4VlDPMp01DC4P2HOsD16Z2CZpYmAApqDhFvWrC+5nqjeXEJuf4/8VH6y7AlzGkfgP9dV8LFq4GxOG7HJtfnHtPDuQt/6ix01JjlLQEScyopqQnft8OXSxxM+PyXVnQweTYhjj3e7xgx1qwIdVI0E7B7shlEjGqQoRuJbKedWEyjcdiN7jyFbZcMvzsTNA/6WgYGKmpo7LE66ezYF+LF7k8tjMOhAMtGZkyHtGY/1ITvdJ5JRMKkwbGw9CHA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DU0PR04MB9659.eurprd04.prod.outlook.com (2603:10a6:10:320::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Mon, 19 Aug 2024 16:02:20 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%3]) with mapi id 15.20.7875.019; Mon, 19 Aug 2024 16:02:20 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Mon, 19 Aug 2024 12:01:59 -0400 Subject: [PATCH v3 05/11] i3c: master: Fix miss free init_dyn_addr at i3c_master_put_i3c_addrs() Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240819-i3c_fix-v3-5-7d69f7b0a05e@nxp.com> References: <20240819-i3c_fix-v3-0-7d69f7b0a05e@nxp.com> In-Reply-To: <20240819-i3c_fix-v3-0-7d69f7b0a05e@nxp.com> To: Alexandre Belloni <alexandre.belloni@bootlin.com>, Boris Brezillon <boris.brezillon@collabora.com>, Parshuram Thombare <pthombar@cadence.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Boris Brezillon <bbrezillon@kernel.org>, Arnd Bergmann <arnd@arndb.de>, Miquel Raynal <miquel.raynal@bootlin.com>, Conor Culhane <conor.culhane@silvaco.com> Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Frank Li <Frank.Li@nxp.com>, stable@kernel.org X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1724083326; l=1049; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=EgTA/bzPVGwsyEemXX3hWkQUEBTDZOU6gFrO4erNl9A=; b=245C5SaZoRsMaZrnL72wzR8YXU0UPxmAMih2qbDLqUW+N8dWcW9+yw4j7b/PpjNRkf+9/C9P7 9ZCCLqKjzLCCoe2iFOoW7pZlxW17gi4tieq2tX04cV4u+/H1LWhMPSr X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SA9PR03CA0005.namprd03.prod.outlook.com (2603:10b6:806:20::10) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU0PR04MB9659:EE_ X-MS-Office365-Filtering-Correlation-Id: eb21c79a-4dc2-4c8b-0317-08dcc0684e39 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?JzEgF5NfDIRrGFp2+zV85UiC3m418a2?= =?utf-8?q?3fHeEP5RqlYhhidg31J8ijv/PXUD/fw2qLCswiUnbigv1vEK9GMXTXlrVf33USGAF?= =?utf-8?q?erxpzAnM5JnTyB9joJZqKBJ4HnnLoqMFz+2Grv3NTAHpe61Y7qd7DBSa7KOCV6hWQ?= =?utf-8?q?ut0Ic7OS/XYOVp0qCYv/YM+s1Tk3ZGcnfGsjmX4a2y1LGvrtYLqox12JoUZUFhrp0?= =?utf-8?q?Xuh7dgvlIb/bM0reGT0F1m3CqCzUFCMGsp+CsEF95mAmUumZbbkkO+CF5SL7PfFSS?= =?utf-8?q?uCUqo9U0V+jQtAOGQgNoIV0Tzcg3gMZbeY13qb3XTHKGOJO4gxcGwwIDB6e4IuCOY?= =?utf-8?q?WJufbjM4rpsJuQVbpJejJ92zfQ1govKN9iku2MQ18KiAjP5stvXlQ9sWJq1PdGqqi?= =?utf-8?q?THUdaIhMSxpJ3QMMjSMlhbqHoQaD85s/y79fjI9+UCG8mZx3MW/736kK091eWOIGX?= =?utf-8?q?kkeSpScKFfw77Jme/IIepDJueDXiormMe5OwUMXtBNqBT1YxmPY3e5q3tT2Cb1r58?= =?utf-8?q?kaafFnp8zJ3/AOfXmQAMS5qBtxxhIA0Gk5m9/tv/IoJXCIWQ+241rzyktQTiVx603?= =?utf-8?q?+VkEHM3BASpCtFMBn+r60VsoNKaAhBlJIHN8LHzduG/RawwmDZAPcWspgvvB4HJ4j?= =?utf-8?q?9E/hOWw8BcnQv0AaJYMOYtDCJkjBDlYm3OV76H1nDV3lQ5lsrg9xmx15NWLIdfUO+?= =?utf-8?q?zDwx6yUbdL8ORjAEzSdHEZZ9hZ3+d0bMentcqaZPLRCd75Fy+x5kTJtTR9/gWtQSI?= =?utf-8?q?ARPXGFtnxal4Jt6g0+WuWIZ7JIcTTEKW0eMJTAAoZZIZzIPZ8YlmpY0FXbtHAoSTh?= =?utf-8?q?5Ui6wwqgUAZT6P03jTvoQBm2MFDsIdBTT0fRgguaBBr3Nox5TGQ8MS2vQyBvvalxX?= =?utf-8?q?iViChfAfU/A/FKJEkzzU+zeP/6GdQ1CeDcjZD4MouYXIOyb2ZeHNvX8v+aUGKl5vw?= =?utf-8?q?q/wI3UTaFbA0RuVkQZrxX41wj41w2Wq1IYQRr+2rgIq2vwMLs4jO0ZWOlDjthpAh4?= =?utf-8?q?EjA2HB8ZjNM+KHTU4OqkOBWPYbNn4pHW4LuGZtd87RZnkZyLiKxkChXZLFYKjUmR6?= =?utf-8?q?24s5iFcby+VNmTw7mY0lP1WQk6r9GgJ8Hq3uOCZ9I3bCq3OvhSrzUIKpCCtP/OfIU?= =?utf-8?q?aqEANMfZtclmlKYsCoeOHbG93oasTgj89eKyvOHaM8AwMb2vpDh0ZIP+0xSP/b40n?= =?utf-8?q?SLEA+33Naueoz33eik2PL6Hj+z3MNaapWKq7MsfJQ4asS3zcILjaTBiutVq3rTdgL?= =?utf-8?q?O02d6wtHWK7W0C5xx2mao/whTg9nD061GrgFHKRHt18Q0z9qhw6AZY8maQNlj08X7?= =?utf-8?q?cNFEyt9YFQZLvRBHgQCyEt6jCzceb3xwlw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-Mess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orlCY?= =?utf-8?q?FnVXHCUBPm3FWwV4U5WLEHNwlpsPHQJvyATlt42n3LmmQtQ177yYrhJupSfxd/sJ6?= =?utf-8?q?i+B2Mx0Nxg+Xpf7nwjXYWuHouBJpFGy5/yrYpQBBXYAIl0LRUG2jvuZ2T77Nvgw47?= =?utf-8?q?4UiytiV+lYM+KhuQRSCTCx0Jv5DBo7UM11yo/d9dZgZD3E/nnZ0mm2R/EDlDuTn/c?= =?utf-8?q?+qRFTZwkU8x/5vor1KbBABdasmnVEldo0VvHbKkOcjNtR6XrRJu0ni3jZD5Pk/9jf?= =?utf-8?q?edrU3D4boL3BwXZKeIvQPSHpECeZN9NM8idgCFkdDKfpbWBrc3qfFbgEAYa9AmWmp?= =?utf-8?q?G47ASp0EyJJc2Al0IE0mni/7UXn5XHnETHThz75eF+IOLPvAgO+88dm/caMco/XvV?= =?utf-8?q?HLZQr31IKKGSkLfoUnhM3CtlfRCWS/wVdmucDJ8m2VfK3Eha4KjlbbISR7bVTAZhc?= =?utf-8?q?+0yyPEkS12XyNvD1EEzs9Y/oNVn8LkhHcMBS53ltFEwNJdqIsshZ8TUcOwGajx8Oa?= =?utf-8?q?gVMqpQPe//ocuFhyzKwFIC9itBOQtmEgHpM7vtX73+4xGraVf095GDovQrwuN1nX6?= =?utf-8?q?Jg3SvCmy3yc3BWagmV/rUIPbEJ5kbr3hfTFEh1NydI0RxgXAIEdlHqPdCuM3NGF0n?= =?utf-8?q?tDSEw2CCX0MkquIq6xTbr+mNcrH5zv6zu7uJdKEhBqIhl6Z1euGZcwWgjQX23M7pU?= =?utf-8?q?ZsAcij/8QtsE?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eb21c79a-4dc2-4c8b-0317-08dcc0684e39 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2024 16:02:20.2541 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: e1n3lxORKPN+KR31KAHetuU4WfJ1/wSDzQZ0LtuKmiTJEdIV1AwzxIGbZ0PdBMS+UaDaQb3wjpfQ4fFhd24wVQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9659 |
Series |
i3c: master: some fix and improvemnt for hotjoin
|
expand
|
Hi Frank, Frank.Li@nxp.com wrote on Mon, 19 Aug 2024 12:01:59 -0400: > if (dev->boardinfo && dev->boardinfo->init_dyn_addr) > ^^^ here check "init_dyn_addr" > i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, ...) > ^^^^ > free "dyn_addr" > Fix typo "dyn_addr" by replacing it with "init_dyn_addr". Maybe you can mention it's a copy/paste error, which makes the diff -when looking at the previous lines- obvious. Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Thanks, Miquèl
diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index c8eaeada54781..65642e5afdcfb 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -1442,7 +1442,7 @@ static void i3c_master_put_i3c_addrs(struct i3c_dev_desc *dev) I3C_ADDR_SLOT_FREE); if (dev->boardinfo && dev->boardinfo->init_dyn_addr) - i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, + i3c_bus_set_addr_slot_status(&master->bus, dev->boardinfo->init_dyn_addr, I3C_ADDR_SLOT_FREE); }
if (dev->boardinfo && dev->boardinfo->init_dyn_addr) ^^^ here check "init_dyn_addr" i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, ...) ^^^^ free "dyn_addr" Fix typo "dyn_addr" by replacing it with "init_dyn_addr". Cc: stable@kernel.org Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure") Signed-off-by: Frank Li <Frank.Li@nxp.com> --- drivers/i3c/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)