From patchwork Tue Dec 20 20:58:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Thompson X-Patchwork-Id: 35194 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3177869wrn; Tue, 20 Dec 2022 13:00:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Q+5pMA/xXHe3/pnoP0a35YRyHbsYN1TtpjusWZtxJ+dkqosxNgh+uHRQQyw9G/Y9Bpvjs X-Received: by 2002:a17:906:8246:b0:7c1:100d:331a with SMTP id f6-20020a170906824600b007c1100d331amr42390565ejx.70.1671570033835; Tue, 20 Dec 2022 13:00:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671570033; cv=none; d=google.com; s=arc-20160816; b=mXBxCy58b8tfAb2tiD0XhLc4piPk77Tm+B7Mo67eF9vyvCAxYVrW4EDy3JlJYmMyhk HVXDXla67s9exWjdf0Idk9zqE8vh2OpsMrf7JDZyQ58pQJ7HlL1GhGIEiSYfEVBALuL3 vI0/EXBn+UFAaGBQkw0GjxTnDa4OTz6nmZEe+IdcoiuPMPJeWc7nDwtc010su2apX72l AhD7O3BBKpxel17eOzVfXO/hP+iNHAsPCOx0Vs04loKaD3hgoqfw4g9j4EprJoNf6/U4 dYg+jBZFeQdWA9qEEsSBgh2gF44arq02nT97MQbrL0sf2O8HlwBbqLssFAcZBgyQSEa2 28pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=xKXJYD4y3GZm6HnbUvNVngViJ+1dwURTi8LZvK89erU=; b=D8z4NWTUqAkfdQc1XoQuq5G2ReXaz08PsXpJFyuGnXUC0Q98t+TswsxF4Tjz3XE43F 9002PmfJHmByt20shZQscXgChdNA1jL/BTt/OOmikly8dNTH77U+p3Cg2MKmHAjD0v1x FSCHlbMCId1JIuja7Uc+HD830pJ7/6uR6cAstrOZZQYVUhcS8PmX7kNxpOdIq3HoQy3d YMdcHPXE0xp/X81DvCeRiquUDWcqeFr4l5K+adBDFdpI1TahWbgQicclnYwS10IYUDSS VDBLp09YZVaM0TAqBB7+xThtrvgcvCrjRzJoetJq+pcU8M74Ae2KCZXAtHpdDw/tNl55 w40A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RXCH9eoz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p10-20020a170906838a00b006feb76dbd51si9103621ejx.289.2022.12.20.13.00.09; Tue, 20 Dec 2022 13:00:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RXCH9eoz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234116AbiLTU6o (ORCPT + 99 others); Tue, 20 Dec 2022 15:58:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234201AbiLTU6i (ORCPT ); Tue, 20 Dec 2022 15:58:38 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB5581DF1B for ; Tue, 20 Dec 2022 12:58:33 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id s6-20020a259006000000b00706c8bfd130so15433277ybl.11 for ; Tue, 20 Dec 2022 12:58:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=xKXJYD4y3GZm6HnbUvNVngViJ+1dwURTi8LZvK89erU=; b=RXCH9eozNGJe68h9FMYrzQJhw22LY0QHXX6+wB2um85IcAi5F13jRtC7I0TNFbJIar RwQvRrrx7hfydCNo0RhFfUO89kcOUdFDqQDCHOt4/Iifcm1/zFd3wX+48WBj+rWbV1ZT v2kGq6yI4qZj5C14WmsSZIK8enEWBQbGS4KpYT3VvM6NafsmikBtRWx1bcZPBkCYeEXM ZrCsjNSciIkJu9ZGo027Kyo7DBkJ1Y4VcNjzH5HCVG73UcVlirgFm+ql7XrJ363COUiG EKvLb1wejLOUOro1C4+BpciF34R+J4JCJcXFqZCJ6R1Ks5lIbZ2NAuvIVUL3cfOq/oLc sNwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xKXJYD4y3GZm6HnbUvNVngViJ+1dwURTi8LZvK89erU=; b=rMKPag+QwpLjWxjFhjSSUXXN29z5srEvdQXwIycZhp2fkmz0BgrCHN3jp7pwSw54G3 d/BKkokE+dnxntQL5V2yPvfgalW6NNN2am1fSdUmX0Oon+7AsCflJHbASnH9bNsmMIzU gKjnMCVZRU9Kj5k5tAo/an/UJ4lpfMPvN2tuy6Fbodxil1mgmB7+XABy4WFJEHv7lcHn 4DyB+jIUr/pzV3RSWdgCicJ1JgdkOK7iiYXDVixN+a3SZOHUuyR7kXWYPiMb7k2adAdQ tLWzHgD/JyMxSz23NPlX4IFDelPT/TgXa4DiyHpau9bciWq3SN+IgL02S20J/OTgZwAb 93vw== X-Gm-Message-State: ANoB5pnXG9HepNHOnYSKfrIhUT/Jcy2m+ZUXDCzqrScuQOdq9u5S8AV5 CWbKC6O80oZc+7HYqCXxUfbCRV8= X-Received: from ptf16.nyc.corp.google.com ([2620:0:1003:314:ef24:68f2:407a:84b9]) (user=ptf job=sendgmr) by 2002:a0d:e783:0:b0:3bc:d289:f4b6 with SMTP id q125-20020a0de783000000b003bcd289f4b6mr4168855ywe.417.1671569913163; Tue, 20 Dec 2022 12:58:33 -0800 (PST) Date: Tue, 20 Dec 2022 15:58:26 -0500 Mime-Version: 1.0 X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog Message-ID: <20221220205826.178008-1-ptf@google.com> Subject: [PATCH] drm: Add orientation quirk for Lenovo ideapad D330-10IGL From: Patrick Thompson To: Daniel Vetter Cc: Patrick Thompson , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752768219795436978?= X-GMAIL-MSGID: =?utf-8?q?1752768219795436978?= Panel is 800x1280 but mounted on a detachable form factor sideways. Signed-off-by: Patrick Thompson --- 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 52d8800a8ab86..3659f0465a724 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -304,6 +304,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 Ideapad D330-10IGL (HD) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGL"), + }, + .driver_data = (void *)&lcd800x1280_rightside_up, }, { /* Lenovo Yoga Book X90F / X91F / X91L */ .matches = { /* Non exact match to match all versions */