Skip to content

Properly get frequency in kernel 6.15 and up#425

Open
tewaro wants to merge 1 commit intointel:masterfrom
tewaro:fix-media-pad-from-6.15-update
Open

Properly get frequency in kernel 6.15 and up#425
tewaro wants to merge 1 commit intointel:masterfrom
tewaro:fix-media-pad-from-6.15-update

Conversation

@tewaro
Copy link

@tewaro tewaro commented Feb 24, 2026

From kernel 6.15+, v4l2_get_link_freq() supports a pad-based lookup via struct media_pad *. The in-kernel MEI CSI driver also dropped its V4L2_CID_LINK_FREQ control in 6.15, so the old ctrl_handler path returns -ENOENT.
Use the pad instead.

This might help with #423, although not sure if it's a universal fix.

In journalctl I was seeing:

intel-ipu6-isys intel-ipu6-isys0: can't get link frequency (-2)

The change in MEI CSI driver is in this commit:
torvalds/linux@56f697e on line 572.

Applying this patch and recompiling the driver fixed it for me.

Would really like this patch in upstream, happy to help any way I can.

Tested on 6.8, 6.14, and 6.17.

@tewaro tewaro force-pushed the fix-media-pad-from-6.15-update branch from af7cdc8 to 0ad3012 Compare February 24, 2026 07:17
From kernel 6.15+, `v4l2_get_link_freq()` supports a pad-based lookup via `struct media_pad *`.
The in-kernel IVSC CSI driver also dropped its `V4L2_CID_LINK_FREQ` control in 6.15,
so the old ctrl_handler path returns `-ENOENT`.
Use the pad instead.

Signed-off-by: Aditya Tewari <adityaatewari@gmail.com>
@tewaro tewaro force-pushed the fix-media-pad-from-6.15-update branch from 0ad3012 to ee8f7f4 Compare February 24, 2026 09:52
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.

1 participant