Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3976468pxb; Tue, 25 Jan 2022 00:26:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFpifYzRkChPSHO4JIUT2Hc3lVeLRF7oqBfnkYcf6hg+nHyc5bnO0XUFSnzQhfx4fT3RXw X-Received: by 2002:a62:1c12:0:b0:4bc:6d81:b402 with SMTP id c18-20020a621c12000000b004bc6d81b402mr17371187pfc.40.1643099214944; Tue, 25 Jan 2022 00:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099214; cv=none; d=google.com; s=arc-20160816; b=RZF5OJ+i8IJHsCiiTPQ+7Goj1NLd2c7mUxvbAq0E87+3grw2S365p/AqQrRv9RkufK XmQ1r783xLtr+uEUuygJiQsmcKnL229QLdbIuqs4r3aLyfuszQDNGfLMjjF5zpIoYrwt 7VN3olth2A1h1i7hpK2kH3N/D0tinBUx1eciGdwzvWI9VUpRm38OL9vcD5GXWiqwNcqF uilBSBFjBOnIQFHZW5u8IDvyahF3y7c3mD1xSX8VVjau91/5QfXZ4cZETHK/3luf7j1T f1kKx/PnEZfkw1M2KprC6SlreIooZti2jYZLbXMdFtPQusWY0wHTDUO5FjSZZIll76BL kZow== 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=GuNltna2wK9j1KIeLWV0Fc+KHtEx8ykYuQyANG0cW3c=; b=LnAtza5eGjaL7ObkvYqjKJyidfh7/Yb6ovg1URtWHGOzKLFBGKc/iz9lCMWSVm/R0d zN4rkmV+PRNh8/zlG8W3KtaHDKfb1YLuMxzNGgzyG409omju5MsUbAlLkdMsctgofoQa fPUVWz/yJu8cxbDHqWDsV4nbVCtEiJJlI7yoA4JebtoGHVWuCKQIWRImRgAtyMsHkNPr +AD+9wAegm3aIZ+OOqWt+haaUmdNh9FfdgjAqCUy+A0sxBUj+JTl2XX5Ilhv+QUmuPHe rYTo4721fgR/gYWey2M6n1YlRF66+yllPR4vbgnsr8VGbYlGHCDlU99B7pIQRsM2u7SW H44w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ZBCa+mn/"; 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 q21si1378994pjd.81.2022.01.25.00.26.43; Tue, 25 Jan 2022 00:26:54 -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=@linuxfoundation.org header.s=korg header.b="ZBCa+mn/"; 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 S3421737AbiAYC1g (ORCPT + 99 others); Mon, 24 Jan 2022 21:27:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358987AbiAXUH2 (ORCPT ); Mon, 24 Jan 2022 15:07:28 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03066C029805; Mon, 24 Jan 2022 11:32:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 982436141C; Mon, 24 Jan 2022 19:32:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B623C340E5; Mon, 24 Jan 2022 19:32:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052751; bh=dxlHkkDhrDWGJRS2ZBt0S7lqBxv/VVktAClM8xc6FqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZBCa+mn/l0J15JxuxJlC/+Iwdu4JrlGU9itMzeXnfOnaT4LpUeTmJBNcaNZXHrNfl NiRD8OCcgo4RADfduaf0sou6ae7GVqeZmLdlUk1xB7tPTaN+brD0SWjihOtCgSc+q2 oquZ+gMFCMU6ZnXyAU6LfdiRfIKHzieToLWh3dlI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yauhen Kharuzhy , Hans de Goede , Simon Ser , Sasha Levin Subject: [PATCH 5.4 161/320] drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Book X91F/L Date: Mon, 24 Jan 2022 19:42:25 +0100 Message-Id: <20220124183959.121870623@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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: Hans de Goede [ Upstream commit bc30c3b0c8a1904d83d5f0d60fb8650a334b207b ] The Lenovo Yoga Book X91F/L uses a panel which has been mounted 90 degrees rotated. Add a quirk for this. Cc: Yauhen Kharuzhy Signed-off-by: Hans de Goede Acked-by: Simon Ser Tested-by: Yauhen Kharuzhy Link: https://patchwork.freedesktop.org/patch/msgid/20211106130227.11927-1-hdegoede@redhat.com Signed-off-by: Sasha Levin --- 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 a950d5db211c5..9d1bd8f491ad7 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -248,6 +248,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), }, .driver_data = (void *)&lcd1200x1920_rightside_up, + }, { /* Lenovo Yoga Book X90F / X91F / X91L */ + .matches = { + /* Non exact match to match all versions */ + DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X9"), + }, + .driver_data = (void *)&lcd1200x1920_rightside_up, }, { /* OneGX1 Pro */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SYSTEM_MANUFACTURER"), -- 2.34.1