From patchwork Sat Jul 20 22:47:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= X-Patchwork-Id: 11051709 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E2FC14F6 for ; Mon, 22 Jul 2019 07:08:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7922828495 for ; Mon, 22 Jul 2019 07:08:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D9E22849B; Mon, 22 Jul 2019 07:08:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2AF9D28496 for ; Mon, 22 Jul 2019 07:08:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B94A89B67; Mon, 22 Jul 2019 07:08:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by gabe.freedesktop.org (Postfix) with ESMTPS id BA0BB89A0F for ; Sat, 20 Jul 2019 22:47:17 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id 62so19189900lfa.8 for ; Sat, 20 Jul 2019 15:47:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=zKLhyz5p7oO0FaWu/NXqNoTadAdq14oGhVItmu/qz+8=; b=tFuQQCqQrApOdfMJ0OitKBFjw+TBdUAz3KHGdcLqoohBbl/I6MsS3R6RecArprmywn F8yUt2ZQU1cBwDKYfIoUlTpCLPGPfkHOsDLpQkWcS4i+Tkw/le8pZTUDFKVaj31CQoKE k3APMH88GD2pmtvq7VhhluBpeTgGPAPBnoCR2NDr2ceh+62I6oWXhNjJ5BnrgyplY/bH usszmxwUI7agOLJoqkcl7mSRthZ5+szgymKM9FpYsT3+2V0xhphla77noBPRm4k918pn p25z2886g3YumZXxRHyowYqbbfZzAaalfyzWjp9UQISE3WJt6bmrr88iQ/L8qFZQv2Rb +AtQ== X-Gm-Message-State: APjAAAWuzHFm+YFWnGnucYKURerBkKtmL4FQJIse9yAo4Y3i7LQrM7bJ 5ZiNR2D3N1oArMrtRQFzjNYeZJUFsIA= X-Google-Smtp-Source: APXvYqymM8Y4GGCs1pVZgbG8Q5g8fYJgIf/F/qNzgm9YnjgAKKAhSu8gLrNlXE5K/MmvH1a6D1LVzA== X-Received: by 2002:ac2:44ce:: with SMTP id d14mr27873653lfm.143.1563662836241; Sat, 20 Jul 2019 15:47:16 -0700 (PDT) Received: from vostro.lan (18.177.94.90.dynamic.jazztel.es. [90.94.177.18]) by smtp.gmail.com with ESMTPSA id f30sm5293251lfa.48.2019.07.20.15.47.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 20 Jul 2019 15:47:15 -0700 (PDT) From: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= To: Jani Nikula , David Airlie , Daniel Vetter , Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH] drm: panel-orientation-quirks: Add D330 HD version Date: Sun, 21 Jul 2019 00:47:13 +0200 Message-Id: <20190720224713.5187-1-howl.nsp@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 22 Jul 2019 07:08:15 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=zKLhyz5p7oO0FaWu/NXqNoTadAdq14oGhVItmu/qz+8=; b=sD+5En42Zfex6IXM33CZfAsVRS8pLWzRKVwhziHDA6O88iI8AwFALzv1B5muC8YFKR /pv62SrUVxGMYUNyVrSxGCOrYopaBsBtFT1gtPNKmNG/j8iezQ+aGZnZYOrwkeDQ3Jv6 oDLVCEoec7o/vy74OKmikIah3Jp1geBR9cu5rrRkKFR5HUkW/zOMmRdYyRIj3vz1CHNj SQ3tvNy0xajY8u8VqcE1KV+skS2bR1O7+746eSe6mV2lNoI2o1DmvtXl7QSnQu00g0o5 /Hk1PX7zI8Pafziu4DkI16RY4yWULDEEWnMPUOjSjzFmtReZglTQeOM0pU3A50rO530C fPEg== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This adds the HD version of Lenovo Ideapad D330. Also edit the FHD version comment to distinguish. This should work despite the dmi data is the same because the resolution checks. Signed-off-by: David SantamarĂ­a Rogado --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index ffd95bfeaa94..1a9aafe519bc 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -198,7 +198,14 @@ 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 (HD) */ + .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 *)&lcd800x1280_rightside_up, + }, { /* Lenovo Ideapad D330 (FHD) */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "81H3"),