Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp827441pxb; Tue, 9 Nov 2021 00:27:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwr3PU07gHC7o1Gc77A0OvpekwN9XCrYtcENaa/Ggy3FQsf7yT8cSQTTzwMsJKyg/fmVKt4 X-Received: by 2002:a05:6402:510c:: with SMTP id m12mr7605851edd.314.1636446437773; Tue, 09 Nov 2021 00:27:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636446437; cv=none; d=google.com; s=arc-20160816; b=ExGgJAW/Bmg09IVuwdta9pQ8/ytoBZnI1hDNLLigZmqbI6gGbKA7QRgYVZCQgqKYTV 86kRFWiMCyJSTCQCwDUKfY3nhHCJ6uVQFY2o536vMwVKbW+E7xFMzBHpup/0SIZQqsm5 r7Dcnmb5ZZecY66LsnuBCRnoBmjG+ER0ZLUApV90iVnaVgNDG2Y4UGqwu39jFyZUxMb9 qS/LuAEVv5ZIcWpD+pgLc4EqpWOblsnjrd2A6LgaOvUTYDvYuXXwsxYFxLciLeoXnkCA cQec1JVRS3VrWZJ1jm+cuzDaygXVjmf3DSBmbqV5NRF4WTcIowdKGip4Rnum80KLCAv7 vTbQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/4rumE8gQ0hOYN/wJHBmaV8E2qXYuhpKtdt2BVyNEB0=; b=DT9gCcEYLTpkfbOHLPGlwa3RAcxUhXImjO2ZpypVlMqjOywMOqjDA3yX9uTXg7bZ59 PfiwhjKEQBJlVjtVkHxEF/xQTbBycSwa2oodGcN5pPqXmhfXC7/QBucVOjY0YO8CM+cw 9lXd0X8AhbKApDr533QjeQlfcYk1K1FBwveoSnfOXNVz83HY4M2AVYtNcplmR/Q1ZwYp IF6XBrse0X2uFBzwvJQgkYlu84caAobjUZJNsxE27iiqZlrrDdSXQLOhCOAES1FeUIwu hYgm9jwq0LA9i/yh9jcdhVq0p+a0f6espZyCQiEe888LIZSLqQ2pErNA5oSUdZADxXjc dSQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L7rO7iNF; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si33438091edd.36.2021.11.09.00.26.51; Tue, 09 Nov 2021 00:27:17 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=L7rO7iNF; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236797AbhKIBC1 (ORCPT + 99 others); Mon, 8 Nov 2021 20:02:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:58082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236525AbhKIBC0 (ORCPT ); Mon, 8 Nov 2021 20:02:26 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 638CD611C1; Tue, 9 Nov 2021 00:59:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636419581; bh=9zaGkbzG33G9/jCc0uSKhcFLFeZIb49t5hfma//Osj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L7rO7iNFYQBo7pWJfXBBQ2uZ6+PH+ZV8D3eH4lP0xLTIfYzlyAfi1E+y6ZQyIYW3K 3hzyoSV0Kkm05icv9vFHKR4yvSf/cDU+oK782Cs6ihhaPZ+LjZSaBxWp6SAc5g08t6 uatZ/T67G381JW4ECWBlTPzk+TappZJ8/cNv6u/WWjN/9MqtTV3itp1/Zo3Q6anCti 694wA2314MAeFnaWCog0/4qbneWATHzHe3eKawVHwNAwJYW6aRHy1W5c4vTNkpsthr bitpML6GURJrOfixY0UFWuiyupLgpcfPCxaxCfK3tLkirVCCFf8OjiapjrEGKm8HmD NzjbpYhXBF/gQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Simon Ser , Sasha Levin , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.15 002/146] drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2) Date: Mon, 8 Nov 2021 12:42:29 -0500 Message-Id: <20211108174453.1187052-2-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211108174453.1187052-1-sashal@kernel.org> References: <20211108174453.1187052-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 820a2ab23d5eab4ccfb82581eda8ad4acf18458f ] 2 improvements to the Lenovo Ideapad D330 panel-orientation quirks: 1. Some versions of the Lenovo Ideapad D330 have a DMI_PRODUCT_NAME of "81H3" and others have "81MD". Testing has shown that the "81MD" also has a 90 degree mounted panel. Drop the DMI_PRODUCT_NAME from the existing quirk so that the existing quirk matches both variants. 2. Some of the Lenovo Ideapad D330 models have a HD (800x1280) screen instead of a FHD (1200x1920) screen (both are mounted right-side-up) add a second Lenovo Ideapad D330 quirk for the HD version. Changes in v2: - Add a new quirk for Lenovo Ideapad D330 models with a HD screen instead of a FHD screen Link: https://github.com/systemd/systemd/pull/18884 Acked-by: Simon Ser Signed-off-by: Hans de Goede Link: https://patchwork.freedesktop.org/patch/msgid/20210530110428.12994-2-hdegoede@redhat.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index e1b2ce4921ae7..5d0942e3985b2 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -223,10 +223,15 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"), }, .driver_data = (void *)&lcd800x1280_rightside_up, - }, { /* Lenovo Ideapad D330 */ + }, { /* Lenovo Ideapad D330-10IGM (HD) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), + }, + .driver_data = (void *)&lcd800x1280_rightside_up, + }, { /* Lenovo Ideapad D330-10IGM (FHD) */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "81H3"), DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), }, .driver_data = (void *)&lcd1200x1920_rightside_up, -- 2.33.0