Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
From 4f876ed4cb856e2795c225824810fd0346e0ed93 Mon Sep 17 00:00:00 2001
From: Kolbas <pkolbas@pm.me>
Date: Sun, 4 Oct 2026 19:30:00 +0400
Subject: [PATCH] media: i2c: cvs: Hand the privacy LED to the host only on
prefixed bridges

On a Dell Pro 14 Premium (PA14250, Lunar Lake, CVS bridge INTC10DE,
USB 06CB:0701), the camera privacy LED stays off while the RGB camera
is streaming.

The 06CB:0701 quirk entry has ICVS_HOST_PRIV_CTRL, so
cvs_configure_dev_caps() always sets ICVS_HOST_ID_PRIVACY_LED in
SET_DEV_HOST_ID, and the bridge hands the LED over to the host. This
board has no host-controlled privacy LED, so after the handover nothing
turns it on.

The same VID:PID is used on Panther Lake (INTC10E1) machines, where the
bridge answers with the ICVS_PREFIX_VAL prefix. On this Lunar Lake
machine, it does not. Intel's out-of-tree driver checks the same magic
value (magic_num_support) to decide whether to send
SET_HOST_IDENTIFIER at all, so with that driver the Lunar Lake bridge
keeps control of the LED.

Set ICVS_HOST_ID_PRIVACY_LED only when ctx->prefix is set. Prefixed
bridges get the same host ID as before (0xc0000000 with the 06CB:0701
quirks). On this machine, the bridge now gets 0x80000000. Only the LED
bit is dropped: ICVS_HOST_ID_RGBCAMERA_PWRUP is still sent, and that
is the combination tested here. Log once when the LED is left to the
bridge. Resume goes through cvs_hw_init() and
cvs_configure_dev_caps() again, so the same check applies there too.

Tested on the PA14250 with v7.2.5 plus two cvs patches from the media
tree (NVL ACPI ID, wake IRQ without claiming the GPIO). Without this
patch, the LED stays off while streaming. With it, the LED is on for
the whole stream. Suspend to idle after using the camera, and
streaming after resume, still work.

Link: https://github.com/intel/vision-drivers/blob/845d6f8bdf66ff1f455901da9de5e00a53a83dce/drivers/misc/icvs/intel_cvs.c#L160-L172
Link: https://github.com/jibsta210/svp7500-camera-fix-pack/issues/6
Fixes: 8e2b43d2c10b ("media: i2c: cvs: Add driver of Intel Computer Vision Sensing Controller(CVS)")
Cc: stable@vger.kernel.org
Signed-off-by: Kolbas <pkolbas@pm.me>
---
drivers/media/i2c/cvs/core.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/drivers/media/i2c/cvs/core.c b/drivers/media/i2c/cvs/core.c
index cd5bf5e..e6c6a1c 100644
--- a/drivers/media/i2c/cvs/core.c
+++ b/drivers/media/i2c/cvs/core.c
@@ -633,8 +633,19 @@ static int cvs_configure_dev_caps(struct icvs *ctx)

if (ctx->quirks & ICVS_HOST_VISION_SENSING)
cmd.param.host_id |= ICVS_HOST_ID_VISION_SENSING;
- if (ctx->quirks & ICVS_HOST_PRIV_CTRL)
+ /*
+ * Hand the privacy LED to the host only on bridges that speak the
+ * prefixed protocol (ICVS_PREFIX_VAL), as Intel's vision-drivers do:
+ * they send SET_HOST_IDENTIFIER only when magic_num_support is set.
+ * A protocol 1.0 bridge (Lunar Lake INTC10DE) keeps driving the LED
+ * itself; those boards have no host-side LED, so taking it from the
+ * bridge leaves the camera recording with the LED dark.
+ */
+ if ((ctx->quirks & ICVS_HOST_PRIV_CTRL) && ctx->prefix)
cmd.param.host_id |= ICVS_HOST_ID_PRIVACY_LED;
+ else if (ctx->quirks & ICVS_HOST_PRIV_CTRL)
+ dev_info_once(cvs_dev(ctx),
+ "privacy LED left to the bridge: no prefix\n");
if (ctx->quirks & ICVS_HOST_SENSOR_PWR_CTRL)
cmd.param.host_id |= ICVS_HOST_ID_RGBCAMERA_PWRUP;

5 changes: 4 additions & 1 deletion pkgbuilds/linux-omarchy-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgbase=linux-omarchy-bore
pkgver=7.2.5
pkgrel=6
pkgrel=7
pkgdesc='Omarchy Linux (BORE CPU scheduler, ADIOS I/O scheduler)'
url='https://omarchy.org'
arch=(
Expand Down Expand Up @@ -112,6 +112,7 @@ source=(
0540-media-ipu-bridge-ivsc-no-cvs-lookup.patch{,.sig}
0541-cvs-nova-lake-acpi-id.patch{,.sig}
0542-media-cvs-wake-irq-without-claiming-gpio.patch{,.sig}
0546-media-cvs-privacy-led-only-on-prefixed-bridges.patch
0560-input.patch{,.sig}
0565-i2c-asue140d-touchpad-100khz.patch{,.sig}
0566-hid-asus-no-keyboard-init-reports-to-touchpads.patch{,.sig}
Expand Down Expand Up @@ -280,6 +281,7 @@ b2sums=('48551bee71cd02815136fb8abe7da4464c2e17c89ef35cb0c0530c8b969fe12127ca97a
'SKIP'
'bb06066e90132f0172333d46be54ca816eb7d3230a193a6cae765d8edc50df4a6ba9fb7c0647cd6befc8c3bbbe1d96c285ee202812477d7295c1130ea8cdd6f4'
'SKIP'
'613429eedd66f32ab6835d8eb7f7a96594b1d4ec80c4cffeea8d541da2bb88fa3dbd8d38e14e9778ad4a623f2a1f80833a3fc4d47ea5dff242e1cac80c45bda5'
'f1a94986b4b3f310fecf981e3619f9787a0c8cb0b4fb3f39e5fe85ee3400e7e50278d41bf5468f65e5bd890358d2aabe28d3e11ee838ccbda2ac7af16be568d9'
'SKIP'
'44dcaad2ab326ebee62d3e63207a161dcb1b63bdb21412b5624ca7875bb6e99997528683a633d7dd526dc5ae9408e73bd066e2a1e5b34ba5c829162df2265346'
Expand Down Expand Up @@ -475,6 +477,7 @@ sha256sums=('55ddf0df8325d9dad96fcff7bd93977d22e3f50af06527572af59b77c7632b78'
'SKIP'
'29c61ec984bd342113b3c4310a3d5fddfd6d7db83847cfb26b84cc730385320a'
'SKIP'
'a188d2871a3ee678e3056221b59a54a17ea85fd84098406ac9f0631b54531b25'
'53425998005a4115bdf6001b9ffbe62c66bb2db205994b2e13005a3417ea6cbb'
'SKIP'
'c28fca9ba015e96599627acf42e52737a6a846bdcbfd3d4af4147eda3109e12d'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
From 4f876ed4cb856e2795c225824810fd0346e0ed93 Mon Sep 17 00:00:00 2001
From: Kolbas <pkolbas@pm.me>
Date: Sun, 4 Oct 2026 19:30:00 +0400
Subject: [PATCH] media: i2c: cvs: Hand the privacy LED to the host only on
prefixed bridges

On a Dell Pro 14 Premium (PA14250, Lunar Lake, CVS bridge INTC10DE,
USB 06CB:0701), the camera privacy LED stays off while the RGB camera
is streaming.

The 06CB:0701 quirk entry has ICVS_HOST_PRIV_CTRL, so
cvs_configure_dev_caps() always sets ICVS_HOST_ID_PRIVACY_LED in
SET_DEV_HOST_ID, and the bridge hands the LED over to the host. This
board has no host-controlled privacy LED, so after the handover nothing
turns it on.

The same VID:PID is used on Panther Lake (INTC10E1) machines, where the
bridge answers with the ICVS_PREFIX_VAL prefix. On this Lunar Lake
machine, it does not. Intel's out-of-tree driver checks the same magic
value (magic_num_support) to decide whether to send
SET_HOST_IDENTIFIER at all, so with that driver the Lunar Lake bridge
keeps control of the LED.

Set ICVS_HOST_ID_PRIVACY_LED only when ctx->prefix is set. Prefixed
bridges get the same host ID as before (0xc0000000 with the 06CB:0701
quirks). On this machine, the bridge now gets 0x80000000. Only the LED
bit is dropped: ICVS_HOST_ID_RGBCAMERA_PWRUP is still sent, and that
is the combination tested here. Log once when the LED is left to the
bridge. Resume goes through cvs_hw_init() and
cvs_configure_dev_caps() again, so the same check applies there too.

Tested on the PA14250 with v7.2.5 plus two cvs patches from the media
tree (NVL ACPI ID, wake IRQ without claiming the GPIO). Without this
patch, the LED stays off while streaming. With it, the LED is on for
the whole stream. Suspend to idle after using the camera, and
streaming after resume, still work.

Link: https://github.com/intel/vision-drivers/blob/845d6f8bdf66ff1f455901da9de5e00a53a83dce/drivers/misc/icvs/intel_cvs.c#L160-L172
Link: https://github.com/jibsta210/svp7500-camera-fix-pack/issues/6
Fixes: 8e2b43d2c10b ("media: i2c: cvs: Add driver of Intel Computer Vision Sensing Controller(CVS)")
Cc: stable@vger.kernel.org
Signed-off-by: Kolbas <pkolbas@pm.me>
---
drivers/media/i2c/cvs/core.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/drivers/media/i2c/cvs/core.c b/drivers/media/i2c/cvs/core.c
index cd5bf5e..e6c6a1c 100644
--- a/drivers/media/i2c/cvs/core.c
+++ b/drivers/media/i2c/cvs/core.c
@@ -633,8 +633,19 @@ static int cvs_configure_dev_caps(struct icvs *ctx)

if (ctx->quirks & ICVS_HOST_VISION_SENSING)
cmd.param.host_id |= ICVS_HOST_ID_VISION_SENSING;
- if (ctx->quirks & ICVS_HOST_PRIV_CTRL)
+ /*
+ * Hand the privacy LED to the host only on bridges that speak the
+ * prefixed protocol (ICVS_PREFIX_VAL), as Intel's vision-drivers do:
+ * they send SET_HOST_IDENTIFIER only when magic_num_support is set.
+ * A protocol 1.0 bridge (Lunar Lake INTC10DE) keeps driving the LED
+ * itself; those boards have no host-side LED, so taking it from the
+ * bridge leaves the camera recording with the LED dark.
+ */
+ if ((ctx->quirks & ICVS_HOST_PRIV_CTRL) && ctx->prefix)
cmd.param.host_id |= ICVS_HOST_ID_PRIVACY_LED;
+ else if (ctx->quirks & ICVS_HOST_PRIV_CTRL)
+ dev_info_once(cvs_dev(ctx),
+ "privacy LED left to the bridge: no prefix\n");
if (ctx->quirks & ICVS_HOST_SENSOR_PWR_CTRL)
cmd.param.host_id |= ICVS_HOST_ID_RGBCAMERA_PWRUP;

5 changes: 4 additions & 1 deletion pkgbuilds/linux-omarchy/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgbase=linux-omarchy
pkgver=7.2.5
pkgrel=6
pkgrel=7
pkgdesc='Omarchy Linux'
url='https://omarchy.org'
arch=(
Expand Down Expand Up @@ -111,6 +111,7 @@ source=(
0540-media-ipu-bridge-ivsc-no-cvs-lookup.patch{,.sig}
0541-cvs-nova-lake-acpi-id.patch{,.sig}
0542-media-cvs-wake-irq-without-claiming-gpio.patch{,.sig}
0546-media-cvs-privacy-led-only-on-prefixed-bridges.patch
0560-input.patch{,.sig}
0565-i2c-asue140d-touchpad-100khz.patch{,.sig}
0566-hid-asus-no-keyboard-init-reports-to-touchpads.patch{,.sig}
Expand Down Expand Up @@ -277,6 +278,7 @@ b2sums=('48551bee71cd02815136fb8abe7da4464c2e17c89ef35cb0c0530c8b969fe12127ca97a
'SKIP'
'bb06066e90132f0172333d46be54ca816eb7d3230a193a6cae765d8edc50df4a6ba9fb7c0647cd6befc8c3bbbe1d96c285ee202812477d7295c1130ea8cdd6f4'
'SKIP'
'613429eedd66f32ab6835d8eb7f7a96594b1d4ec80c4cffeea8d541da2bb88fa3dbd8d38e14e9778ad4a623f2a1f80833a3fc4d47ea5dff242e1cac80c45bda5'
'f1a94986b4b3f310fecf981e3619f9787a0c8cb0b4fb3f39e5fe85ee3400e7e50278d41bf5468f65e5bd890358d2aabe28d3e11ee838ccbda2ac7af16be568d9'
'SKIP'
'44dcaad2ab326ebee62d3e63207a161dcb1b63bdb21412b5624ca7875bb6e99997528683a633d7dd526dc5ae9408e73bd066e2a1e5b34ba5c829162df2265346'
Expand Down Expand Up @@ -470,6 +472,7 @@ sha256sums=('55ddf0df8325d9dad96fcff7bd93977d22e3f50af06527572af59b77c7632b78'
'SKIP'
'29c61ec984bd342113b3c4310a3d5fddfd6d7db83847cfb26b84cc730385320a'
'SKIP'
'a188d2871a3ee678e3056221b59a54a17ea85fd84098406ac9f0631b54531b25'
'53425998005a4115bdf6001b9ffbe62c66bb2db205994b2e13005a3417ea6cbb'
'SKIP'
'c28fca9ba015e96599627acf42e52737a6a846bdcbfd3d4af4147eda3109e12d'
Expand Down