• Hans de Goede's avatar
    media: ipu-bridge: Add HIDs from out of tree IPU6 driver ipu-bridge copy · 440de616
    Hans de Goede authored
    
    
    The out of tree IPU6 driver comes with its own copy of the ipu-bridge code.
    It also comes bundled with standard v4l2 sensor drivers. Many of these have
    been mainlined and the rest is being mainlined but not all are upstream
    yet.
    
    The latest version of the out of tree code now will use the mainline kernel
    ipu-bridge version when build against new enough kernels.
    
    This however breaks support for (bundled) sensor drivers which do not (yet)
    have an entry in the mainline ipu-bridge code.
    
    Add the missing entries to the mainline ipu-bridge code to make
    the transition to having everything in mainline easier.
    
    The alternative HID for the OV13B10 and the OV08x40 entries both are for
    sensors already supported in mainline which were missing.
    
    The downside of adding these HIDs is that this will cause the IPU3 / IPU6
    drivers to delay registering there /dev/video# nodes until a sensor driver
    has bound, which for the non mainline drivers may never happen. This is
    not really an issue because almost all IPU designs only have front (user)
    facing sensors and all the added HIDs are for the main RGB (not IR) sensor.
    So if the sensor driver is missing then the user can already not use
    the camera and adding these HIDs does not really change that.
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    440de616
ipu-bridge.c 23.4 KB