• Bingbu Cao's avatar
    media: ipu3-cio2: support multiple sensors and VCMs with same HID · 567f97bd
    Bingbu Cao authored
    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:
    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.
    Signed-off-by: default avatarBingbu Cao <bingbu.cao@intel.com>
    Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    567f97bd
cio2-bridge.h 3.11 KB