Message ID | 20240813-i3c_fix-v2-5-68fe4a050188@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011063.outbound.protection.outlook.com [52.101.70.63]) (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 CC2221A0AF0 for <imx@lists.linux.dev>; Tue, 13 Aug 2024 15:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.63 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723562147; cv=fail; b=FnaIFKlOHw065xe/O38Xvg7xxZ9zp5oY7FNXpwZd8n0W+WrM9bfAhUwNXjXQRP5obIDw01GVR1DxgdTbACdcC0dPFL38PN2UwmUIdVClSNNbPqCDRXL2T0jEM/HtLxD6mzRESP0ELMnj0SjCpVDWM2eNtJYYhkrbI7VGfHjUFXE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723562147; c=relaxed/simple; bh=EgTA/bzPVGwsyEemXX3hWkQUEBTDZOU6gFrO4erNl9A=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=afH1+0baTs3TqkRfm5smyiHyWgrSHnCPvfpkg4R4i9xVICq5D+7n2wENIUykrVGbA/thW/WMzK2LIWLxf1eqiE0Rn2gObt76Do55GledeHvt6XcHm/Q51WqOrzPYM9ETTUfaX0Qcz1P0ChXjWrSaEr1ubs8KsfLPW/WWo9T5yFg= 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=av/+KPl/; arc=fail smtp.client-ip=52.101.70.63 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="av/+KPl/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N54LHIJBi4gBsgxheopBM33C0jujZ3uhryNmucyIF/JWsL1oCMSLPvxSLoNhE/iRbkRgHmMeh79iO8cLu3AAVc8bXDLEAuL/H48Ab3hyYeJurVOCpulOmji2x9fkHqAzhMTOub+LBKUhOj+k5GVwfvn2/UzCa0USl0Yl79zTrvdRxt2NnpAMVc6dK4MNsQwyCjP1kUWsw26js4WnrSH58sgqF6sNPGq+7DKiCp2zb18lPjrUuGU6Tjpf7ESpks7o8WhCpRES/2uAXBVoLxwDXyBBtnMWH1kznTDriDxWCDaGbbe41ugB8gynzZGje7WIPTWEBka7WfvMh+3mXxDW8A== 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=rwen0AVrNMDJdIQvBYNqSR1+8Og7r+zLtLZbxGpRDGsYXNAGatLtp/gD00E3zW3YWkbwyeVmkxGXQqIEQx6cdOBVLStFgcso+fYBYgzgAa+0srfPmAoGCTNpBW/VJfqq7wkvfqOxap/C/yfcsormp1qHhYWEi/2POkB9m07WKUILfPNf7y7orMueXC0ZHsc8+KfyPkhHSEcW8ToZ7+O8k+0PHRyevHwXUd73xNmNiRd6wg+BQv/McZhcUG2IaN3QkUmARL24kJpCCq0vEwbGGizB94atX5K70OTJ04Qev+SHdr7wSGw1fC8wlalnh5c+IEq6zTVYPkeG3CRecDTfLw== 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=av/+KPl/CBKGG4ecG9MgfMQuYxxyWLeWxZKkrLg5VRxE1b/waiNgTZ/PiewYNHs4ucRu88O0dN9MqhZAuWMoZsHHufmaf51FIxAQ4chaZrV8CH399Exyiz5vcrQnUrUEtuzoCIFDuGLX/lcWIFqBb3UUcc/10+plWNn3atf9QwUxoG6p2wmGE5WVD7lLUU5/ZqqCP8MnuvFBUMqXMTLlv+8vAe0Wk/JEhH10QjiWFFf4pChis7JfH5kHJkKoGtUI/4poyaRg32Kn6xU87E+at5I0zHIzCIuScUvyHzcJZuLj4gZWy6BZWa8YX484PC0Zu2Um1FoKfVJKR3hmb8oqwQ== 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 AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Tue, 13 Aug 2024 15:15:36 +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.7849.019; Tue, 13 Aug 2024 15:15:36 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Tue, 13 Aug 2024 11:15:03 -0400 Subject: [PATCH v2 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: <20240813-i3c_fix-v2-5-68fe4a050188@nxp.com> References: <20240813-i3c_fix-v2-0-68fe4a050188@nxp.com> In-Reply-To: <20240813-i3c_fix-v2-0-68fe4a050188@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=1723562115; l=1049; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=EgTA/bzPVGwsyEemXX3hWkQUEBTDZOU6gFrO4erNl9A=; b=hAyCF0YFRChaiv4lpD1eZFkklFLhkx9di+Z7RRgXgHdEd1oR1LfWRPDbFWb5htqhitnhuMBpw NgIixKn1c8NAxnTZ0YyAcu7h4Y/VY69pvSbgKhDQKjjJiUJeXdtTLAm X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0125.namprd05.prod.outlook.com (2603:10b6:a03:33d::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_|AS8PR04MB8404:EE_ X-MS-Office365-Filtering-Correlation-Id: 143c2f17-ecec-4e42-2a28-08dcbbaac880 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|7416014|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?cRQDKWZGkULRXhUYlsq7AUxAjr+UO/q?= =?utf-8?q?U6WbTvze30b7Yo+fhtyaBLIsacedgBKa7oUjoAlnxdfAtpFa5cdAjaiaDizy8SFdb?= =?utf-8?q?OGx5sgwrPNivT3LuThy5R/aUT69D3icfNvNq4XwxYCYJhCt6ZA5ZSI8kpwytUoniU?= =?utf-8?q?1yrGLyptoJ1xVydJzeghuek9MXGisdRVCFhPVEJxojw3lqQpRKtTcANKIT7ZE63WQ?= =?utf-8?q?gtmW+izeJ54ubFPRT0xfslqdF7fdQZ2a6EJdECim9OA5A7La76mQOZCEuFLdIhqcL?= =?utf-8?q?l4KKmj/k8l0PRBu1mXXlHuNVZTMOE7rGOI7Zkot2pTehXHjGO80iLbahKOrxob7Hy?= =?utf-8?q?1+RCS8n9nXHBj23dKAInsWh1F6zKGE/luh+j3XxrycoQCtqKsSsXXZTxDOecqV0cU?= =?utf-8?q?RMzOI9lS2O61B7enYUwjKiBhIDwRxMmuRQeKZbkcv1WLwugGYqLy2sizxnCVrJzun?= =?utf-8?q?OtuptcczjavlI1KqXsBJD0e8QWLIcFBBOOq6dpIvfYjFL9j4SVzGMjxtO2WGCqlLU?= =?utf-8?q?Q0mP1zp60q1kmuxatz97mMP1k/Xoee7MFDQb9Wm+C9BL+aFdcmkbrByMoLC6kozXY?= =?utf-8?q?a2BZ5rtGjlGGdhW5UzgDKcmbpy+7qED//KkGmSCxKby95h94IfqURubDRhwd7xwmw?= =?utf-8?q?4TcDXSasow9L3BZU1Mm/3nFq7ySk9iaSh8+laWQ/ZbAkCc/YtUc2Ea556kmBVvmKT?= =?utf-8?q?Jb+OIAm5t2FHGQ3ip3r3OBXJijtECGTV5W2riAg95m+OyE+Mj9rvdXRWnRV/pxY5l?= =?utf-8?q?TtM/2SaPWQYgWAX5MnUhsIvJOP2BCKQCUCuPF8H/joQ1IrgZJhzdeI/KpzC7wCAq9?= =?utf-8?q?w3W0b4e0t6wErtyXoCOOycVFCeNIyrjfM7pRy8l1O8kdnIEkPvlhrSS25jSOR3+He?= =?utf-8?q?z1kCqZsS2idlR8DBjLz2MC2DJffbTQShZBwrnb0XJiuvwul+At621pR9IRg6+lNsc?= =?utf-8?q?FHVj+AMXZXNqYrwBHbAnLPtf4UEFTq9X9MWkqI22Gxdc1YN7fpU/9ZopvxplL9XBa?= =?utf-8?q?KUzbaesy41+Ug5EK1Kof8eMMkH/2MW0FAar7oQ6uo/0gfLZwSUUjXiyFXH4KjuA5g?= =?utf-8?q?9HjnO6fTP50pzy4cRcw0n31Lz6tOQUkaYJyk7SOd/Yaz1a+veYcYXD1lNVqsxJrVO?= =?utf-8?q?FitA+0w3Hz6x7ePcWs4q1kPv22PtEJfo9zOk5tylVkIRb0IkJzMgs0u7EBVUe2F+7?= =?utf-8?q?FMTEE4vBH/mI7xVw9IMZDZ3DgzjLRcX/LCh0MWJlWuiqzkjmCwfvAT4p9H4mI7TGQ?= =?utf-8?q?9feV9FIQOSrAnW4gBQshg7zRwAi+3YzIc+5+ZHYpeP+GJJIOyK9CgyCMnNh/cyS0b?= =?utf-8?q?epXu103qH2VHjGwQX9HBbVIn/ytEjSAm9A=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)(7416014)(376014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Ex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EiC9HQxeAJEUob5GlwEtOFmHHH6Uivx2FmqvodK4dOVrBkrQ3UKswE1?= =?utf-8?q?qoBMJDp8P2xH6/5mLDMOpDpBPSbPQ06uk/MF4gozneqsRkMUbqnhAFFLQS7wIA3dk?= =?utf-8?q?3y8AQmIoKClLE/QhXbVz8/wsPW8WnBQxa8HgcAFMYN4LH7M8NyY0pZr41lOr0Qgec?= =?utf-8?q?9+5rJED/+M4uUD9LA9hs+pTnrUKocPKL7oLLimvbOYqKjfcDisiMZe0DXD8SjFQoT?= =?utf-8?q?fdo/FC9vZ0XvJzrml92fHnlnPfS+87S6WXaJ4poX5+bno20ZQK/YEDIMlnxSxGaUW?= =?utf-8?q?xIAhWH9hGMfT0PK3bxtJkVzIMP23hFR+KWGmmxpHqbvZpJOv4tw6WfenDfKSIyH3g?= =?utf-8?q?xzGrJIZJ5J0HX2fVd1XZ9r7k8MNrEHe1Z/z2EySX93YB6UubijNfG/m8sPJ7NNOV5?= =?utf-8?q?KhCqZe3NmANol6d8GgoUCieMX3q97bSvyjmJE5rffDad7pSwadavKplTfafwDahiE?= =?utf-8?q?AkkKR8D2uiLHclZdlVhswoi6bSNeuxlqwB5WkIZxm7uFoacy8Yd2tu9NaKDNevmO1?= =?utf-8?q?AXFe0R9rc3Z3mNFGmHaF4z9nHhi5XQf2m5GsKdKXJPkkjJeAbqaBNbDT4JVAxr6py?= =?utf-8?q?mj2hFNodYYFnqd9wBBoxpkGoOU7Kb1wa/f0l25gAY0C4sUa9gYssuXFI=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 143c2f17-ecec-4e42-2a28-08dcbbaac880 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2024 15:15:36.3539 (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: mGP9IvjK7pKiApvUiP5rIRfHvCgEsL5VYQynwGuby0p/Oj+06aO4FWUrhD9e7feyOwLOwgQOp7emY+MQhJZr1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8404 |
Series |
i3c: master: some fix and improvemnt for hotjoin
|
expand
|
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(-)