From 64b82f77e39490c331a93ee566b583578353c498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Mar=C3=ADa=20Mart=C3=ADn?= Date: Tue, 10 Nov 2026 18:11:33 +0100 Subject: [PATCH] media: ipu-bridge: fix the OVTID858 link frequency count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The OVTID858 entry declares 4 link frequencies but gives only one: IPU_SENSOR_CONFIG("OVTID858", 4, 540000000), The count does not fit the array it indexes, which holds 3 entries (include/media/ipu-bridge.h): #define MAX_NUM_LINK_FREQS 3 const u8 nr_link_freqs; const u64 link_freqs[MAX_NUM_LINK_FREQS]; Use the entry from upstream commit 2ee01a094aba ("media: ipu-bridge: Add OV13858 sensor config"), which gives the two frequencies the ov13858 driver supports and was tested there on a Surface Pro 9: IPU_SENSOR_CONFIG("OVTID858", 2, 540000000, 270000000), No functional change on the Surface Pro 9, as ov13858 does not read the link-frequencies property; tested on kernel-surface 7.2.15. Fixes: 9481aaa03220 ("Add camera support for Surface Pro 9") Signed-off-by: José María Martín --- drivers/media/pci/intel/ipu-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/intel/ipu-bridge.c b/drivers/media/pci/intel/ipu-bridge.c index 271b987660c5..e7fa775f68ac 100644 --- a/drivers/media/pci/intel/ipu-bridge.c +++ b/drivers/media/pci/intel/ipu-bridge.c @@ -66,7 +66,7 @@ static const struct ipu_sensor_config ipu_supported_sensors[] = { /* Omnivision OV5693 - Surface Pro 9 */ IPU_SENSOR_CONFIG("OVTI5693", 1, 419200000), /* Omnivision OV13858 - Surface Pro 9 */ - IPU_SENSOR_CONFIG("OVTID858", 4, 540000000), + IPU_SENSOR_CONFIG("OVTID858", 2, 540000000, 270000000), /* Omnivision OV2740 */ IPU_SENSOR_CONFIG("INT3474", 1, 180000000), /* Omnivision OV5670 */