Skip to content

Pr275 builderrorfix v4l2compat 5.15to6.11 #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

santhosh-12250986
Copy link
Collaborator

Pr275 build error fix v4l2compat 5.15to6.11

@santhosh-12250986 santhosh-12250986 marked this pull request as draft June 18, 2025 11:43
@santhosh-12250986 santhosh-12250986 changed the base branch from master to dev June 18, 2025 12:29
@ymodlin ymodlin marked this pull request as ready for review June 18, 2025 12:49
@ymodlin ymodlin requested a review from Copilot June 18, 2025 12:50
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Intel RealSense D4XX kernel driver to build against Linux 5.15 up through 6.11 by expanding version checks, refactoring v4l2_subdev pad/video operations, and adjusting driver callbacks.

  • Broadened #if LINUX_VERSION_CODE guards for v4l2 format/state APIs, class_create, and i2c probe/remove signatures
  • Refactored ds5_sensor_get/set_fmt and ds5_mux_get/set_fmt to use v4l2_subdev_state_get_format, updated pad ops tables
  • Added error handling in ds5_g_volatile_ctrl and marked functions static where needed
Comments suppressed due to low confidence (1)

Comment on lines +5247 to +5248
unsigned int mipi_csi2_type;
s64 *sub_stream = NULL;
Copy link
Preview

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variables mipi_csi2_type and sub_stream are declared in ds5_substream_init but never used; consider removing them to reduce dead code.

Suggested change
unsigned int mipi_csi2_type;
s64 *sub_stream = NULL;

Copilot uses AI. Check for mistakes.

else
remote_sd = &state->mux.last_set->sd;
#ifdef CONFIG_VIDEO_INTEL_IPU6
ffmt = &ds5_ffmts[pad];
Copy link
Preview

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In ds5_mux_set_fmt, the DS5_MUX_PAD_EXTERNAL case only assigns ffmt under CONFIG_VIDEO_INTEL_IPU6. On non-IPU6 builds this will fall through and return -EINVAL; add a default ffmt assignment outside the IPU6 guard or handle the pad for all configurations.

Suggested change
ffmt = &ds5_ffmts[pad];
ffmt = &ds5_ffmts[pad];
#else
ffmt = &sensor->format; // Default assignment for non-IPU6 builds

Copilot uses AI. Check for mistakes.

@Nir-Az
Copy link
Collaborator

Nir-Az commented Jun 18, 2025

Closed and reopened to trigger ci :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants