]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: Move device name assignment after i3c_bus_init
authorBilly Tsai <billy_tsai@aspeedtech.com>
Mon, 12 Jan 2026 06:07:22 +0000 (14:07 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 14 Jan 2026 14:57:23 +0000 (15:57 +0100)
commit3502cea99c7ceb331458cbd34ef6792c83144687
treec663cf1724b984c6fd1833ad90f7fa36e11145d2
parente7218986319b4e903dfb4642dcbd1087cf16aaec
i3c: Move device name assignment after i3c_bus_init

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_register")
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260112-upstream_i3c_fix-v1-1-cbbf2cb71809@aspeedtech.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master.c