From nobody Sun Dec 14 14:15:28 2025 Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8001F22B8C0 for ; Thu, 16 Jan 2025 15:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737042795; cv=none; b=hVGuTpEvWPhFJLgvpq/BIh1TABBkusPh79Bcxpl/WFTxR94yFZjIhaZzRcsRYCKRsyJkT8vwZg4z7jFxJpXrGWxLcf2Bh3jpKruJOMzIOpbmNLFFBmI7IgX0HkeGF6a+UwJkSAfzBfhFFV51nyKMN1K6ILZenewCN5Tije+aa2k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737042795; c=relaxed/simple; bh=K0Szq5V12tAYz5QapQC1dSyH7cknfaxXchxKPfqfXmE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ieuSGrEMxdmSIEFKCB51BEHavPm8jHhva8KP50OWkatb7BWmLWqpZrLwiPthw0Lt7/S7c5kwCJKNm/HVuNsCZUxc8pejsILAuA5Aq8oM4paGe2Qi9HKg3Ct7MpJ0v8A2xIBKHKryXUbl1BDjubbFzROwY/L0rXc2vehmEH5cs54= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-71e2a32297dso634459a34.0 for ; Thu, 16 Jan 2025 07:53:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737042793; x=1737647593; 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=kA+5/cCDMEVy9H9hQsMuvHPoF7Lama9bj1o+Le+tyQ4=; b=JjgwtovXfXP+sVHFJIXNCGI9d65ksGOktlxpMSRRKteJLDE6SD89FnvQjAi8FaNgn8 TChe7HkIs9PBdOcPxrKYYYoYRXWQdqhJcrATSaS07/J/mNLQH6exsBNNECkIjkxkSS+6 oKrWiBiijBMhp16jUYRFw+3p5uekdL/St26F9OBRUxteNDutSCNMFFhtyhluLitUgSYB plxd7xlhwB293DRJ+z0uAozrLXZEOI/WmrfZTEBkIy73CybmgCvLLVV45ZqhV4D8q8sr C8X0+zkoKKvjKMmFc2uq/6+GYp8tQQqbRCSFMggKaUM6POeQLVQooZ1jF1Z5ABMG4kNk 5M8g== X-Forwarded-Encrypted: i=1; AJvYcCX50sGRmh/OPTsrIN0dvs0V2dFgoaCTmv9lfiJjA54nXLkE4AKHs1ghyi8NVqOdY8YnBSwl8JMZloHThf4=@vger.kernel.org X-Gm-Message-State: AOJu0Yxc6uu7htVX7VNoPtOkbU3oJEib/bIfWur7wDd2Kb5RR3L9+z7w 2QW5B/mYqpV7r9ZZtmru7gF3nQUhF71q2KV/VvLNncq0fmHc2res X-Gm-Gg: ASbGnctJPKHK507hgPJdWt/Jj9ozf51hfY/CcxX44vt4nJRCUvK/zQtPAk2G7gbU7sj RiHDdtGP/GZUsDuChEzwu/DOFbS37vvMF0bhUmcCaOn3pm2DvB92qcOE9Pg4NcYH2BbEgI5WXLI begxUHY7ihiqjHccc/nW1jdyrbsHOKEfbC9P6fKVCs9UzNax0whrI4J162g2S20UdZLctYgai6H oTmZw1J4YGjpa0zF5i7Ix1cEIKC81M9BgYJqoy0YkUELrAw4J+2V4BzaQ== X-Google-Smtp-Source: AGHT+IG8ZIE5+BJhaGeJRBaZvEsBRD3tiHiI6FaSGMbUXWETrlCMwASRRfR9lR9VvtVaZMjKvT+DTQ== X-Received: by 2002:a9d:5d18:0:b0:71d:eec3:5623 with SMTP id 46e09a7af769-724858ff63cmr4821346a34.4.1737042793502; Thu, 16 Jan 2025 07:53:13 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa35f05bbdsm70538eaf.13.2025.01.16.07.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 07:53:12 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Andrew Wyatt , John Edwards , Paco Avelar , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 Date: Thu, 16 Jan 2025 15:50:51 +0000 Message-ID: <20250116155049.39647-10-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250116155049.39647-2-uejji@uejji.net> References: <20250116155049.39647-2-uejji@uejji.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Andrew Wyatt Some GPD Win 2 models shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these models. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar --- 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/d= rm/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[] = =3D { DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), }, .driver_data =3D (void *)&gpd_win2, + }, { /* GPD Win 2 (correct DMI strings) */ + .matches =3D { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2") + }, + .driver_data =3D (void *)&lcd720x1280_rightside_up, }, { /* GPD Win 3 */ .matches =3D { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), --=20 2.43.0