Device registration error issue

Hello All,

My custom camera driver was migration LT32.4.3 to LT32.6.1.
When registering the camera driver, registration failed due to the following error message.

I don’t know why the driver that has been confirmed to work in LT32.4.3 on the same hardware does not work.

[  103.749016] imx415 2-001a: ERROR: 6 controls registered with framework but missing implementation
[  103.749230] imx415 2-001a: Error -22 in control ops setup
[  103.749392] imx415 2-001a: Failed to init ctrls imx415
[  103.749494] imx415 2-001a: tegra camera subdev registration failed
[  103.749754] imx415: probe of 2-001a failed with error -22

I would suggest using imx274 reference driver as template to implement IMX415 on R32.6.1 again.

Hello ShaneCCC,

Comparing imx274 and custom driver, I did not find any particular difference.

Looking at the dmesg log, it seems that an error occurred during the execution of the tegracam_device_register function.
If this is the case, please let me know which settings should be reviewed.

[  702.896360] imx415 2-001a: [IMX415]: probing v4l2 sensor at addr 0x1a.
[  702.903649] imx415 2-001a: tegracam sensor driver:imx415_v2.0.6
[  702.925055] imx415 2-001a: ERROR: 6 controls registered with framework but missing implementation
[  702.925272] imx415 2-001a: Error -22 in control ops setup
[  702.925368] imx415 2-001a: Failed to init ctrls imx415
[  702.925458] imx415 2-001a: tegra camera subdev registration failed
[  702.932115] imx415: probe of 2-001a failed with error -22

thanks

Looks like your driver lost the ctrl_ops implementation.

Are you referring to the ctrl_ops structure below?
Commenting out the driver settings I added gives the same symptoms.

static struct tegracam_ctrl_ops imx415_ctrl_ops = {
	.numctrls = ARRAY_SIZE(ctrl_cid_list),
	.ctrl_cid_list = ctrl_cid_list,
	.set_gain = imx415_set_gain,
	.set_exposure = imx415_set_exposure,
	.set_frame_rate = imx415_set_frame_rate,
	.set_group_hold = imx415_set_group_hold,
//	.set_black_level = imx415_set_black_level,	

};

Have a check the error message from …/kernel/nvidia/drivers/media/platform/tegra/camera/tegracam_ctrls.c to figure out missing which CID implementation in your driver.

Hello ShaneCCC,

As you recommend, i checked tegracam_ctrls.c.
Commented out the custom sensor command code.
it works good !
It helped a lot in finding the cause. thank you!

I want to added custom camera sensor control.
please, let me know howt to CID implementation.

For the CID defined TEGRA_CAMERA_CID_* and modified tegracam_set_ctrls, tegracam_ctrl_ops.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.