Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3384358pxb; Mon, 17 Jan 2022 19:14:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7wQblMxNXMMTD3DAUqtRVngW6EqjTl+naJ1EP3uHCt1PS3ls+I83ToWB1TJL4VXlz/Ogn X-Received: by 2002:a17:902:e5cf:b0:14a:8068:a5a with SMTP id u15-20020a170902e5cf00b0014a80680a5amr22166390plf.80.1642475643633; Mon, 17 Jan 2022 19:14:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642475643; cv=none; d=google.com; s=arc-20160816; b=TsG/Ju1kcVXJKy0Y9j9Nyy+QSaauRWLQdLWwOKCKc9KI6hXAlkPCOhXCfeqeGl4s9c Se0vZkRSQLS8ulGp1tjGO4Jwev3ubwunvX+ntZ5I6JNBKViA5vfyG2HwNOqdQQaunAid VG8A1J7+a8YnE6iedmJVXFWSLFE75RPoWhEdg91sniqJP7gfD0LkJ+5dQLUXT/bX3qx6 xIwUx5n9A/xaTrUks17DN9VZAMH5+GjkjQsj7jQvtjMCJQcUJaQsaf5ItA9fSPH64yB9 3XDwq5EyjZ/C1Gcel/iumOOSwF9jNCdm/8ImcnIlwP197bxS8EesE32sapd5pDRcbInc h/7A== 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=qvBBul3an6nqDyl4Lsbe2Zj1SoZ+ZJ9uEcy+5JA2EWI=; b=bjAjI/t8xo/fBWpfNOf01a98So+sP9DctiNVFEXrmzdtBbLEi9I/3S8GXaOsZfUr+k Jsf6O+PM7krooNrXyYvHxz7sOPwCPEv1g82XDvVp/qQZcduoNwGt+dzLkak93u5MegaV iJ1dzMe0w/gggi33qatpbVJXt/ajsKnmxmf7kMc3/FkC7+6/0pazdbgQ65RjDICSmfqs mzBi8FVqM21R24u6Gf8wlijCleJ1h5PZA5/t4KTtn3sevh/huNwXeIUALrKSF2yT94pD WfT+jCm5Io0EM5hrQzzHY5F9h2Tt+957vOJhFHTKmN9HPFmAFPPaobjVU5ODIVYk6DFq Ma0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XlE+YkyB; 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 i8si14119606plt.602.2022.01.17.19.13.52; Mon, 17 Jan 2022 19:14:03 -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=XlE+YkyB; 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 S245011AbiARCXI (ORCPT + 99 others); Mon, 17 Jan 2022 21:23:08 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:35888 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244455AbiARCVi (ORCPT ); Mon, 17 Jan 2022 21:21:38 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id F387BB81238; Tue, 18 Jan 2022 02:21:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 902E2C36AF2; Tue, 18 Jan 2022 02:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642472495; bh=0mE4HMQmvBOAF1RsNUNu4EhUlU0J1p1amXqdxPdIfWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XlE+YkyBXUBqUlksiTLguTaAmwDalSmnGKOq98kI0go5w3r2KKOwQ2i8fZlPBSc2Y SijRHYZNzgxXQxxXNr6zeemFiyA+QAKbXJsNs/+VuMpTxxW61jIYDzDDkwRPOFMZic BK2tUzbvRxHRVa+hKGR7OAs5wAaSY8Vl9OOitERKUO2IW4YJS3WRR3wcZ1lioqPDeW Blt3DtokF7QMexShhuum96BDESbm/JqaxMfsZXbgm7Ge6htk/RKAGrYOUbJ81vTDLL XiEMQbSIZ+N9ubBiD/67WHAWwyRo47Hds1ekygu78Z7IPvmvl+KXHt9ftXcs6mBFzc e5LUykaybykLg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Yauhen Kharuzhy , 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.16 033/217] drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Book X91F/L Date: Mon, 17 Jan 2022 21:16:36 -0500 Message-Id: <20220118021940.1942199-33-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118021940.1942199-1-sashal@kernel.org> References: <20220118021940.1942199-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 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 a9359878f4ed6..042bb80383c93 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -262,6 +262,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