From 8fc0667688892bbeb1fe8f3d28c91ba1f7f40323 Mon Sep 17 00:00:00 2001 From: Jan Baisch Date: Wed, 12 Aug 2026 21:12:14 +0200 Subject: [PATCH] media: intel/ipu-bridge: fix rear camera rotation on Surface Pro 12 The OV13858 rear camera on the Surface Pro for Business 13in 12th Ed Intel is physically mounted with a 180-degree rotation, but its OVTID858 firmware metadata reports the normal orientation. As a result, ipu-bridge exports zero-degree sensor rotation and userspace displays the rear camera upside down. Add an OVTID858 entry for the tested Surface Pro 12 Intel DMI identity to the existing upside-down sensor quirk table. This only corrects the mounting metadata exposed to userspace. It does not rotate image data or alter sensor register programming. Tested on Surface Pro 12 Intel: the rear camera reports 180-degree rotation and is displayed upright, while the front camera remains at 0 degrees. Signed-off-by: Jan Baisch Link: https://github.com/linux-surface/kernel/pull/175 Patchset: cameras --- drivers/media/pci/intel/ipu-bridge.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/pci/intel/ipu-bridge.c b/drivers/media/pci/intel/ipu-bridge.c index 3418ff4751985..af7faf3df0ef6 100644 --- a/drivers/media/pci/intel/ipu-bridge.c +++ b/drivers/media/pci/intel/ipu-bridge.c @@ -136,6 +136,15 @@ static const struct dmi_system_id upside_down_sensor_dmi_ids[] = { }, .driver_data = "OVTI5693", }, + { + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, + "Surface Pro for Business 13in 12th Ed Intel"), + }, + /* OVTID858 is the rear camera on this model. */ + .driver_data = "OVTID858", + }, {} /* Terminating entry */ };