Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3712764pxb; Mon, 24 Jan 2022 16:05:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkHlkKPBNjApYRvklSy8iPpcIhdmhAFyxIxrGDLWXW3ghF0sNwNecUgD+oyGRuiT6T7PJ/ X-Received: by 2002:a63:3803:: with SMTP id f3mr13463551pga.275.1643069136222; Mon, 24 Jan 2022 16:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069136; cv=none; d=google.com; s=arc-20160816; b=QAkqyxbJd8fAsjdMCFmB5/2EBp2tz8k570wWcV9TC/Ot3K3H3fVAT8dlQ9DtkEgTVJ mZHtffTj5fswc4fTZ2SZQV8gZpjYX52JwEuPV7s/xATozHEEMZ2ztWgVtbnWr0IIrSHR 4sw/YOnLyw/+mwz76INSM5GQvCmSrMwEFOKElL6XYJhIHF+Ny9RubF2UHe5NGS8Vutuf vsD6kbe7JCaaEGWIV+W5uyVurhU+NGV5rKKUSRzRLoofuYrOdL8HVPRoQDGy3P83WmRE kfNiwh8U8DBf/kuMu2DYxtII9oXUAY9QCmz6rSYGzNdiHthJc3gRw8szyxluFX46u7i0 Lmsg== 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=qvBBul3an6nqDyl4Lsbe2Zj1SoZ+ZJ9uEcy+5JA2EWI=; b=oKdoONrkH2Ck+bR6VySweUCyiqqa+C4QJ+z0b3tAYYjV15jKJcYpTHK4vXMpDlQOBc 01vEyyGezw+Dj2/WXywfIYt+1VhKejE3gzWqekoHMgkSuKkktHEO3DbWty3T2cs2FqHI nh5qyqGLMUkL+09+TWK6vjSiyfbQZ/Z5OrLRpX2DlMaIUJcvfJWn3zv+vAGNb4HOn68+ vOol4Vryx3nNAITW+d99zHcBb+r8+aPgoo1BxQlM6zyKvA4S2y7napFekqGeNCg6XYgO bgoQfrChGsO0NVl40zsbYo0h3sBhs4Sj21lJ7+6/e4+0G/neKWv/8NMqMfAlJaqwshbn dEug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NRPGAL1n; 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 e12si666698pjw.86.2022.01.24.16.05.16; Mon, 24 Jan 2022 16:05:36 -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=NRPGAL1n; 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 S2366770AbiAXXxd (ORCPT + 99 others); Mon, 24 Jan 2022 18:53:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1846019AbiAXXOO (ORCPT ); Mon, 24 Jan 2022 18:14:14 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1843EC061759; Mon, 24 Jan 2022 13:21:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id B4F1BB811FB; Mon, 24 Jan 2022 21:21:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E599CC340E4; Mon, 24 Jan 2022 21:21:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059301; bh=0mE4HMQmvBOAF1RsNUNu4EhUlU0J1p1amXqdxPdIfWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NRPGAL1nZl119s2rG6dQpBYL42hSCYjA6ww63VFhyIggKUWGRpmqfpaTM6pIB7bJW AWSQ+G6lmqkSsf4/3uyKkMtvR9LRaiJQFJfrPNaEQVaHmwOeM8hdMWRX6dJ4/d4mRx L/irQ+D4sNMW7gtoJpr3cdwFQXmgjYFkDAct8MQY= 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.16 0570/1039] drm: panel-orientation-quirks: Add quirk for the Lenovo Yoga Book X91F/L Date: Mon, 24 Jan 2022 19:39:19 +0100 Message-Id: <20220124184144.495199759@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 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