Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

i3c: master: dw-i3c: Fix missing of_node for virtual I2C adapter

The DesignWare I3C master driver creates a virtual I2C adapter to
provide backward compatibility with I2C devices. However, the current
implementation does not associate this virtual adapter with any
Device Tree node.

Propagate the of_node from the I3C master platform device to the
virtual I2C adapter's device structure. This ensures that standard
I2C aliases are correctly resolved and bus numbering remains consistent.

Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260302075645.1492766-1-peteryin.openbmc@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Peter Yin and committed by
Alexandre Belloni
f26ecaa0 9a258d13

+2
+2
drivers/i3c/master/dw-i3c-master.c
··· 1659 1659 pm_runtime_get_noresume(&pdev->dev); 1660 1660 1661 1661 INIT_WORK(&master->hj_work, dw_i3c_hj_work); 1662 + 1663 + device_set_of_node_from_dev(&master->base.i2c.dev, &pdev->dev); 1662 1664 ret = i3c_master_register(&master->base, &pdev->dev, 1663 1665 &dw_mipi_i3c_ops, false); 1664 1666 if (ret)