Skip to content

patches/6.19: cameras: add dw9719 i2c_device_id table fix#2123

Open
toor11 wants to merge 2 commits into
linux-surface:masterfrom
toor11:fix/dw9719-i2c-device-id-6.19
Open

patches/6.19: cameras: add dw9719 i2c_device_id table fix#2123
toor11 wants to merge 2 commits into
linux-surface:masterfrom
toor11:fix/dw9719-i2c-device-id-6.19

Conversation

@toor11
Copy link
Copy Markdown

@toor11 toor11 commented May 11, 2026

Summary

Adds back the i2c_device_id table to the dw9719 VCM driver for kernel 6.19, fixing a regression that prevents cameras from working on Surface devices that use the dw9719 voice coil motor (ov8865 autofocus).

Root cause: Upstream commit "media: i2c: dw9719: Remove unused i2c device id table" in kernel 6.19 removed the i2c_device_id table. However, on Surface devices, the VCM is instantiated by the IPU bridge via I2C, so it requires I2C device matching. Without the table, dw9719_i2c_driver has no i2c:dw9719 alias and the driver never binds.

Cascade failure: Without the VCM bound, cio2_notifier_complete() does not fire, so v4l2_device_register_subdev_nodes() is never called. The ipu3-csi2 entities get no V4L2 subdevice nodes, and libcamera reports "Skip ipu3-csi2 0: no device node" → empty camera list.

This patch is taken from Sakari Ailus's upstream fix:
https://lore.kernel.org/all/[email protected]/

Affected issues

Test plan

  • Kernel builds with the patch applied
  • modinfo dw9719 shows alias: i2c:dw9719 (and dw9718s, dw9761, dw9800k)
  • media-ctl -p shows links between sensor entities and ipu3-csi2
  • cam --list reports cameras on Surface Book 2 / Surface Go 2 / Surface Pro 8+

toor11 and others added 2 commits May 11, 2026 21:04
The i2c_device_id table was removed from the dw9719 VCM driver in
kernel 6.19 as 'unused', but it is required for Surface devices where
the VCM is instantiated via the I2C bus by the IPU bridge.

Without this table, the dw9719 driver fails to bind to the VCM device
(MODALIAS i2c:dw9719), preventing cio2_notifier_complete() from
running, leaving cameras without media links and V4L2 subdevice nodes.
libcamera then reports no cameras.

Fixes: linux-surface#2087
Fixes: linux-surface#2101

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Adjust line numbers in the dw9719 i2c_device_id patch to account for
the 3 lines added by the preceding dw9719 probe delay patch at line 121.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@busywait
Copy link
Copy Markdown

I didn't create an issue for it, but I see the same behaviour on my Surface Book 1, and have confirmed the front camera is re-enabled with this patch and correctly shows an image. (The rear camera is detected after applying this patch, but shows only a green screen if selected in the fedora f44 gnome camera app).

@toor11
Copy link
Copy Markdown
Author

toor11 commented May 19, 2026

Thanks for testing on Surface Book 1! Great to see the fix working for the front camera.

The green screen on the rear camera is likely a separate issue.

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.

Surface Pro 6 camera not working — ipu_bridge creates no CSI-2 links Cameras not detected on SP6

2 participants