Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2476344pxj; Mon, 10 May 2021 04:02:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRzpsWjqQbjkqrzo1SMQpl9+/AauN9onvCnxT8g4VdhFqmfRmvMhnFOUh9q99k28j+euDX X-Received: by 2002:a17:906:1ed1:: with SMTP id m17mr25657542ejj.208.1620644567030; Mon, 10 May 2021 04:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644567; cv=none; d=google.com; s=arc-20160816; b=H9GT1Vzc3pmkVOz4jS1TDet6elpd8QYZc8xiKDUFK/IgxhvD8d4O784qED7Wu6dQ+k cUu25hTd41CW5GVggxnqujToHxf3xPb2KYkW/IExvj/Ull++ND6KmAwrYLS7575DBlDo oTEnnnkctWu/1IC+Uhamb3n6oLqHE/iZRFRc3l4V/KXUlXr+83mG/WQUiRukkkknu3++ OtqITDSHPpbb1vSf7j+oeTxQ0VKHUulOyG+d/jf3EYw135mPAuGN6hV/QfNFJvAqQKax Rtjevu+vSkWbIQBfAYmeEcshnmdhW6B+jrEpEcrIPgkcJtD/AN/BjNlDqH3W4vfsL3hO kwAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3YoOOST+o+BmiCyQDDQxA0YokS04xyIkAbwvWybCyfE=; b=rxP5ogkjSgWYWXbB+TXPkLcc2QaDuEaP3h29rrukHkQ0IBv2HMPW4NGhds1z+2yil7 DhIE9Km50AysmaQPQM6fFsTaP6TfzeJmPgWcNcI4pva2Fo4t7g3i7aL5Zm7clj4VnBfJ TcDuXdvVd0uJk8RiNHcV/DKeEaeVpZEdZls9M+wAb0I5lHe1vjuYPjlLfOGfXCqt70cb apSVZwSoJpy3G4XYwGljjUPiwyqFvtVl+/h4wKJAkyuzWpwiUb5TL6XYM69rl3IHVziA M2CXBw0CkZzllik2UWOi4UDlQb9CFHw7CwGnkihs7iSh/J4+s8zJIa4WYYcvuEueabCl 7m0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BdQQXm69; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oq27si13055334ejb.383.2021.05.10.04.02.23; Mon, 10 May 2021 04:02:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BdQQXm69; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235512AbhEJLBK (ORCPT + 99 others); Mon, 10 May 2021 07:01:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:59374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233291AbhEJKpf (ORCPT ); Mon, 10 May 2021 06:45:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8A0D161995; Mon, 10 May 2021 10:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642942; bh=GECd6ZWGOLxXk6I6RpW1NsCGUbeOBhdBjmOBiu+231s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BdQQXm696/fkFJ2hC6YFQO0d78Z2ZoEB7OL8Rd48HlTqcumBV7VkoBFRP+VtcWFZP i0dMhHRnFoERNpkbamanhPrI2Q64LzmivkDey0JrI0+1v9Y0FWjyvttoM0bDdhJmxt e1vbSZX/CtyomF8tjrItV2ppgBUqB62rDcMwv8x8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jared Baldridge , Hans de Goede , Sasha Levin Subject: [PATCH 5.10 113/299] drm: Added orientation quirk for OneGX1 Pro Date: Mon, 10 May 2021 12:18:30 +0200 Message-Id: <20210510102008.694395810@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jared Baldridge [ Upstream commit 81ad7f9f78e4ff80e95be8282423f511b84f1166 ] The OneGX1 Pro has a fairly unique combination of generic strings, but we additionally match on the BIOS date just to be safe. Signed-off-by: Jared Baldridge Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede Link: https://patchwork.freedesktop.org/patch/msgid/41288ccb-1012-486b-81c1-a24c31850c91@www.fastmail.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 58f5dc2f6dd5..f6bdec7fa925 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -84,6 +84,13 @@ static const struct drm_dmi_panel_orientation_data itworks_tw891 = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data onegx1_pro = { + .width = 1200, + .height = 1920, + .bios_dates = (const char * const []){ "12/17/2020", NULL }, + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = { .width = 720, .height = 1280, @@ -211,6 +218,13 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), }, .driver_data = (void *)&lcd1200x1920_rightside_up, + }, { /* OneGX1 Pro */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SYSTEM_MANUFACTURER"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "SYSTEM_PRODUCT_NAME"), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Default string"), + }, + .driver_data = (void *)&onegx1_pro, }, { /* VIOS LTH17 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"), -- 2.30.2