Re: [PATCH v4 1/3] media: ipu-bridge: Add DMI information of Lenovo X9 to the image upside-down list

From: Sakari Ailus

Date: Wed Jun 10 2026 - 17:59:28 EST


Hi Kate,

I know several people have given you different advices but...

On Tue, Jun 09, 2026 at 08:49:24PM +0800, Kate Hsuan wrote:
> The Lenovo X9 has an upside-down-mounted Sony IMX471 sensor so the image
> was displayed upside-down. Add the DMI information of Lenovo X9 to
> resolve the issue.
>
> Signed-off-by: Kate Hsuan <hpa@xxxxxxxxxx>
> ---
> drivers/media/pci/intel/ipu-bridge.c | 32 ++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
>
> diff --git a/drivers/media/pci/intel/ipu-bridge.c b/drivers/media/pci/intel/ipu-bridge.c
> index fc6608e33de4..9e24aaceecdf 100644
> --- a/drivers/media/pci/intel/ipu-bridge.c
> +++ b/drivers/media/pci/intel/ipu-bridge.c
> @@ -134,6 +134,38 @@ static const struct dmi_system_id upside_down_sensor_dmi_ids[] = {
> },
> .driver_data = "OVTI02C1",
> },
> + {
> + /* Lenovo X9-14 */
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> + DMI_MATCH(DMI_BOARD_NAME, "21QA"),
> + },
> + .driver_data = "SONY471A",
> + },
> + {
> + /* Lenovo X9-14 */

How are the two X9-14's different? It'd be good to have some comment here
which model this actually is: the board name is only available (typically
at least) in DMI.

> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> + DMI_MATCH(DMI_BOARD_NAME, "21QB"),
> + },
> + .driver_data = "SONY471A",
> + },
> + {
> + /* Lenovo X9-15 */
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> + DMI_MATCH(DMI_BOARD_NAME, "21Q6"),
> + },
> + .driver_data = "SONY471A",
> + },
> + {
> + /* Lenovo X9-15 */
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> + DMI_MATCH(DMI_BOARD_NAME, "21Q7"),
> + },
> + .driver_data = "SONY471A",
> + },
> {} /* Terminating entry */
> };
>

--
Kind regards,

Sakari Ailus