On Tue, Mar 07, 2023 at 02:31:10PM +0800, bingbu.cao@xxxxxxxxx wrote: > From: Bingbu Cao <bingbu.cao@xxxxxxxxx> > > In current cio2-bridge, it is using the hid name to register software > node and software node will create kobject and sysfs entry according to > the node name, if there are multiple sensors and VCMs which are sharing > same HID name, it will cause the software nodes registration failure: > > sysfs: cannot create duplicate filename '/kernel/software_nodes/dw9714' > ... > Call Trace: > sysfs_create_dir_ns+0xbc/0xd0 > kobject_add_internal > kobject_init_and_add > swnode_register > software_node_register The above lines are not so valuable. You can remove them. > software_node_register_nodes > cio2_bridge_init > ... > kobject_add_internal failed for dw9714 with -EEXIST, > don't try to register things with the same name in the same directory. > > One solution is appending the sensor link(Mipi Port) in SSDB as suffix > of the node name to fix this problem. -- With Best Regards, Andy Shevchenko