[PATCH] media: ipu-bridge: Add DMI quirk for Dell 14 Premium DA14250

Keith Harvey posted 1 patch 1 week, 6 days ago
drivers/media/pci/intel/ipu-bridge.c | 7 +++++++
1 file changed, 7 insertions(+)
[PATCH] media: ipu-bridge: Add DMI quirk for Dell 14 Premium DA14250
Posted by Keith Harvey 1 week, 6 days ago
The Dell 14 Premium DA14250 has its OV02C10 front sensor mounted upside
down, like the Dell 16 Premium DA16250 and the other Dell models already
present in upside_down_sensor_dmi_ids[]. The rotation is reported as 0 in
both the SSDB and the _PLD, so without a DMI quirk the image is presented
upside down.

Add a DMI quirk entry for this model so that a rotation of 180 degrees is
reported for its OVTI02C1 sensor.

Signed-off-by: Keith Harvey <kthhrv@gmail.com>
---
 drivers/media/pci/intel/ipu-bridge.c | 7 +++++++
 1 file changed, 7 insertions(+)

--- a/drivers/media/pci/intel/ipu-bridge.c
+++ b/drivers/media/pci/intel/ipu-bridge.c
@@ -145,6 +145,13 @@
 		},
 		.driver_data = "OVTI02C1",
 	},
+	{
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Dell 14 Premium DA14250"),
+		},
+		.driver_data = "OVTI02C1",
+	},
 	/*
 	 * The first four characters of DMI_BOARD_NAME identify the Lenovo
 	 * machine type/model. For example, a DMI_BOARD_NAME starting with
-- 
2.43.0