Message ID | 20240813-i3c_fix-v2-5-68fe4a050188@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 23005C531DD for <linux-i3c@archiver.kernel.org>; Tue, 13 Aug 2024 15:15:43 +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=TkNMDiiZQ1d3C62qR6X2EkMR1S 9QyeH6uOaKe282YMIYWYXV7djNO7tkjl/1pLv64n4XlqBb0OftLliefc02wxVAFUYHoE3jijh/Wuf TgefSiwDx9/j2okYukXlUfwiE9rmHCKjecI6OKI9oToMVAOsJJJ609E+Vf6mjn2jVIjKwa8R1JIGt 3K3UPP9dfxUwwQ+D9+eeencefV6ng53B03Is91l4KjG1DpUqoWsjFLAF5SEI8rjjrI5v9+8gyEEVm PjEq0vDXZ655X8TbDpBheBJaTl65fDAOvWUyTUIkIm6eIcGgjyaDP9R0YuzLnZ0irdNcy9MghvD1f bbJaiuzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdtFO-00000004Ann-3F8g; Tue, 13 Aug 2024 15:15:42 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdtFL-00000004AkB-3bgX for linux-i3c@lists.infradead.org; Tue, 13 Aug 2024 15:15:41 +0000 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() 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) 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-Exchange-AntiSpam-MessageData-0: =?utf-8?q?oucNMllILr0EDG+zVa8l8wUV4wuN?= =?ut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?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240813_081539_936891_49E153B4 X-CRM114-Status: GOOD ( 10.91 ) 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
|
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(-)