Message ID | 20240819-i3c_fix-v3-5-7d69f7b0a05e@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CEA0C5320E for <linux-i3c@archiver.kernel.org>; Mon, 19 Aug 2024 16:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=6bp/tQqlBOp7EXkQkdMksXeso+Qnl4xw3VX1tOEdRxU=; b=nhxoqg//llKWqNwO8df3GOuZf6 ZVpMNrOCsVqyGd4MsywEbiyYlDTmTG/RB8Nf8km9W6j6JLCBa0rOFonIgubk9Pou9mH6SoYY7XUCL a+j5KB8X5JCrgHnicJg9ysGkJuQaqJmZY9CeFS2zsrgB2TuYWQ/liqN/bHBLMBfSHaGD/QkypFU4f KG+yedYKOWLzlp+TUm9NeyA1Z45auY57+8RW0nWX3IrB+bTOnPFmY6DLZWvoBC21fMDfGj3d6b/Av IixHLog1HMR4fHe/YXCTQS1ZKqUk/A+Tb0OHn5IR9dMQi8dCKmUXXk/7OsbIX+9n7eOWedCFQoGU1 pQ07nkug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg4qm-000000024iD-3hpM; Mon, 19 Aug 2024 16:03:20 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg4q2-000000024HY-2SkN for linux-i3c@lists.infradead.org; Mon, 19 Aug 2024 16:02:40 +0000 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() 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) 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-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-Mess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5WLEHNwlpsPHQJvyATlt42n3LmmQtQ177yYrhJupSfxd/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240819_090234_709749_DB9B870F X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-i3c.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-i3c>, <mailto:linux-i3c-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-i3c/> List-Post: <mailto:linux-i3c@lists.infradead.org> List-Help: <mailto:linux-i3c-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-i3c>, <mailto:linux-i3c-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-i3c" <linux-i3c-bounces@lists.infradead.org> Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org |
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(-)