Hello,
I am trying out L4T r32.2.2 on an AGX Xavier and trying to modify the imx185 camera board to support camera slave mode.
In r28.2 parse_dt function was called from probe, so the imx185 private data structure had already been created and linked to camera_common_data->priv which was passed into parse_dt. This structure made it trivial to add custom settings to the device tree. In my case I have a property that is set to “true” to indicate the camera is the slave and then I set a flag in camera_common_data->priv.
Now parse_dt is called from camera_common_sensor_ops and tegracam_get_privdata(tc_dev) just returns null, meaning it is being called before that is set inside probe.
Is there a way to have the driver’s private data structure available during parse_dt, or should I just handle it in probe?
Thanks!