From nobody Sun Feb 8 15:46:03 2026 Received: from TWMBX01.aspeed.com (mail.aspeedtech.com [211.20.114.72]) (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 82FAF72617 for ; Mon, 12 Jan 2026 06:07:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.20.114.72 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768198054; cv=none; b=Uyp2Av+6szBzcvIjeiEVtX+gLqrU2JcCTg9pSG0ei34zUo4yYrLwj+CEoxQTLL8ck5S2WiKUiVXuDAn+bxu/yhMzcASWzh61W1JgHc2IA6+CAQhz/agzRsLjoRsq+LbBA2dJdmN7dRJMsqFrWHmDGLZg1fvYDICSiaR2jxBJFE0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768198054; c=relaxed/simple; bh=0WXuprc6pBXr2YJmG7cWwTjM8gYJby628nouzslXniM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:To:CC; b=jFg6kUOyJuNe/LIgutGeHp+7ND82GRDwjaMX8/1bWW5DuR76qjg+AJcjARlNwBsP5ot4Al8YwAadGC06rW42PuldLjOY9dW6+qYiAm5ThIy8lvypZmHpF0/vQObFDb9cYvjdpdIRVYYmpSrgL1hdoOYK9C7UMBMoPLTUgBBU3oU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; arc=none smtp.client-ip=211.20.114.72 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 Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Mon, 12 Jan 2026 14:07:23 +0800 Received: from [127.0.1.1] (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Mon, 12 Jan 2026 14:07:23 +0800 From: Billy Tsai Date: Mon, 12 Jan 2026 14:07:22 +0800 Subject: [PATCH] i3c: Move device name assignment after i3c_bus_init Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20260112-upstream_i3c_fix-v1-1-cbbf2cb71809@aspeedtech.com> X-B4-Tracking: v=1; b=H4sIAJmPZGkC/x2MQQqAIBAAvxJ7TtBNO/SViBDbag+ZaEUg/j3pO AMzGRJFpgRDkyHSw4lPX0G1Dbjd+o0EL5UBJfZSKRR3SFcke8zcuXnlV2hjLDqnNVoDNQuRqv6 X41TKB9gVJiViAAAA X-Change-ID: 20260112-upstream_i3c_fix-455a2cc442a5 To: Alexandre Belloni , Frank Li CC: , , "Billy Tsai" X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768198043; l=1264; i=billy_tsai@aspeedtech.com; s=20251118; h=from:subject:message-id; bh=0WXuprc6pBXr2YJmG7cWwTjM8gYJby628nouzslXniM=; b=oefSr4pEnR2L3qVO4YNRFDDpyEoT6Gj+OSmDy0xOHqw5aQ5Ky73AL6zho4b3hABgXXq1JMfcj sqWXB6WmdJNCS15+LEiEBhl93p1idHbn50oFYWHU10adi0EUFxlKASZ X-Developer-Key: i=billy_tsai@aspeedtech.com; a=ed25519; pk=/A8qvgZ6CPfnwKgT6/+k+nvXOkN477MshEGJvVdzeeQ= Move device name initialization to occur after i3c_bus_init() so that i3cbus->id is guaranteed to be assigned before it is used. Fixes: 9d4f219807d5 ("i3c: fix refcount inconsistency in i3c_master_registe= r") Signed-off-by: Billy Tsai Reviewed-by: Frank Li --- drivers/i3c/master.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index 7f606c871648..1bc3c9068402 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -2881,7 +2881,6 @@ int i3c_master_register(struct i3c_master_controller = *master, INIT_LIST_HEAD(&master->boardinfo.i3c); =20 device_initialize(&master->dev); - dev_set_name(&master->dev, "i3c-%d", i3cbus->id); =20 master->dev.dma_mask =3D parent->dma_mask; master->dev.coherent_dma_mask =3D parent->coherent_dma_mask; @@ -2891,6 +2890,8 @@ int i3c_master_register(struct i3c_master_controller = *master, if (ret) goto err_put_dev; =20 + dev_set_name(&master->dev, "i3c-%d", i3cbus->id); + ret =3D of_populate_i3c_bus(master); if (ret) goto err_put_dev; --- base-commit: 9c7ef209cd0f7c1a92ed61eed3e835d6e4abc66c change-id: 20260112-upstream_i3c_fix-455a2cc442a5 Best regards, --=20 Billy Tsai