Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: atomisp: csi2-bridge: Add DMI quirk for OV5693 on Xiaomi Mipad2

The OV5693 the Xiaomi Mipad2 is used as a front facing sensor and
as such is connected to CsiPort 0, but the _DSM has CsiPort 1, add
a DMI quirk to override the wrong _DSM setting.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240603132057.255917-5-hdegoede@redhat.com
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Hans de Goede and committed by
Hans Verkuil
e323de47 aa7a0208

+14
+14
drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c
··· 106 106 {} 107 107 }; 108 108 109 + static struct gmin_cfg_var xiaomi_mipad2_vars[] = { 110 + /* _DSM contains the wrong CsiPort for the front facing OV5693 sensor */ 111 + { "INT33BE:00", "CsiPort", "0" }, 112 + {} 113 + }; 114 + 109 115 static const struct dmi_system_id gmin_cfg_dmi_overrides[] = { 110 116 { 111 117 /* Lenovo Ideapad Miix 310 */ ··· 120 114 DMI_MATCH(DMI_PRODUCT_VERSION, "MIIX 310-10"), 121 115 }, 122 116 .driver_data = lenovo_ideapad_miix_310_vars, 117 + }, 118 + { 119 + /* Xiaomi Mipad2 */ 120 + .matches = { 121 + DMI_MATCH(DMI_SYS_VENDOR, "Xiaomi Inc"), 122 + DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"), 123 + }, 124 + .driver_data = xiaomi_mipad2_vars, 123 125 }, 124 126 {} 125 127 };