From patchwork Thu Feb 13 22:24:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Edwards X-Patchwork-Id: 13974122 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CE63C021A4 for ; Thu, 13 Feb 2025 22:25:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 96F4010E157; Thu, 13 Feb 2025 22:25:18 +0000 (UTC) Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 910DE10E157 for ; Thu, 13 Feb 2025 22:25:17 +0000 (UTC) Received: by mail-ot1-f44.google.com with SMTP id 46e09a7af769-72700b5056bso752417a34.0 for ; Thu, 13 Feb 2025 14:25:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739485517; x=1740090317; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8eTQnFsqbcvmvatv+aySiG7hGLvYa4g1Z3Z6TofLd/w=; b=bchbMuhfRlnLNvxQHuJc/qmpMjn1MpOzvBcgf4P2A+XFMsS0akKcZI7bOIoHCDcqzU 5tVvvffiuA1/dNGKLuFfg6/+Wwl6u9MJz/UfBRs8ibHIW+2B2Jh+7OdFx+I8FIAehwLL HhZYQpBLOXe3RYSA3GhZjjFsfu1sEN6RnLlRcarM+pUkZnnYwzgZEDjwXmEr89dM9vRj To1DOJndo4UU3E8g4ZEKIGlUNVKGPScv3Gph/KAQLLLP57YXRl8mWoEolq/4rMMqixZ+ mVeEA1BnMp+G1AeW5q8krHJuOccsGCD8Wm0DBtc6/NpuPkXCDhGJBYJ8x+x0chdWSzyY ybgQ== X-Forwarded-Encrypted: i=1; AJvYcCUeuPZHvd2t//9eLnGu4c7OuV4MfR2PdMFJQNDlOIYrIMuA5qqHtfcnIjU6Ca5YurEDLM9YCqStVuA=@lists.freedesktop.org X-Gm-Message-State: AOJu0YzC69yn/r4RWRX/L/tKCdMvDUjKEs3xa0b/6c6lx5L/Vx04dGx5 iL5fbs6vz1IrjhnpBQ8oIechIipmusytWwQAgu9GsPNzAXMloaI4 X-Gm-Gg: ASbGncuXVaXlTmOFIczb5pGvYBOEK+yakHxIrihB9vhTqSIrqSKrtZzsBZa7whP04bM xXM/auSkXTTPM3ubYX47+MuadmpfGcLYr8SN/n2gIq/FqXL6+gJAtHUlHjF5zexigbXctBzHc2h Ek16c8TSD2i+RVOWLTIgBmqDulGGqZjv711nQBKUkQDe7ndLDcXKalQItqpVDc+RAgvUefoFYO3 rQLYGyFY6afJKjRoKJxCSn9NdHQtORrjxfh3nZyt/YaCSs6+uBzX60SKmhDZ3bm66xhVdvgls6/ 6yoFY5rTQkFV8Zi7 X-Google-Smtp-Source: AGHT+IHipVy8Ez4Nu22Q47V+pVq+mOtomnXSTAzpHpquTaE6egG89MM7IbaCk2ntH6Fzt5ZgWkCvcw== X-Received: by 2002:a05:6830:6e8c:b0:71e:15f7:1a3a with SMTP id 46e09a7af769-726fefd3a0emr2801644a34.2.1739485516705; Thu, 13 Feb 2025 14:25:16 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-727001cde00sm984184a34.5.2025.02.13.14.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 14:25:16 -0800 (PST) From: John Edwards To: Hans de Goede , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter Cc: John Edwards , Andrew Wyatt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Paco Avelar Subject: [PATCH v3 4/5] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 Date: Thu, 13 Feb 2025 22:24:52 +0000 Message-ID: <20250213222455.93533-5-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250213222455.93533-1-uejji@uejji.net> References: <20250213222455.93533-1-uejji@uejji.net> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Andrew Wyatt Some GPD Win 2 units shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these units. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by: Thomas Zimmermann Reviewed-by: Hans de Goede --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 9e6708cd1..e6148cc31 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -339,6 +339,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), }, .driver_data = (void *)&gpd_win2, + }, { /* GPD Win 2 (correct DMI strings) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2") + }, + .driver_data = (void *)&lcd720x1280_rightside_up, }, { /* GPD Win 3 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),