From patchwork Sat Feb 16 19:58:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: kernel test robot via dri-devel X-Patchwork-Id: 10817437 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 8575313A4 for ; Mon, 18 Feb 2019 08:09:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74F9E2A05F for ; Mon, 18 Feb 2019 08:09:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 691BF2A063; Mon, 18 Feb 2019 08:09:54 +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,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 2A1892A05F for ; Mon, 18 Feb 2019 08:09:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 79D6489170; Mon, 18 Feb 2019 08:09:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id 86A176E273 for ; Sat, 16 Feb 2019 19:58:39 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id h10so9349767lfc.12 for ; Sat, 16 Feb 2019 11:58:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sEewwVldiVo8/h78D93x9qitcL+iOuoFQE+TsRRKcQo=; b=OxsSp5MV1NmqDF983I9Y1NG4zDSNKBrwuonjvP6Zh857RApFC5ToUGbdAb/F5zJrSY wr4+RBtN3RFKv6QoIztuh3vciEHQv0h451zLQMDVP6SX56WSm/D/bZUofRp+NLMFEZ6r VOUbwzkeWdCyCeOJpx2JyVI7cp6gTwPDPBMWjPhVBVy0FLl3CkP/X+Ab5qNQd9jXMKCj xy4/lI1UeCuFpJ6k/TGjwd7AvT+Sg+cpPQLH4ScO3XjCDfl0P1As5nO+Lc0KhtVOUVKZ fzIh0Dr6N3nE6L7VbT4o1mcu3hm9XKGTFZVA7KOkIzKVEm00wdFqAEb+kGUZkQFVEle5 jd6g== X-Gm-Message-State: AHQUAuZZKYy/UdMArKOU6mZKjZUeAFBwV+duubu9mJM523SQZlhLR0Kk w1xoLS5XNcZ8q74RCSHTTE0= X-Google-Smtp-Source: AHgI3IbPvlJnGhAVLv3I/ZdBEM50Dlv5q1Es7EqIYGUuc6OZ/M9L2Uha/+PfPXlb8tm+EX3p+WodQA== X-Received: by 2002:a19:c70f:: with SMTP id x15mr9192450lff.34.1550347117871; Sat, 16 Feb 2019 11:58:37 -0800 (PST) Received: from vostro.lan (16.red-83-32-177.dynamicip.rima-tde.net. [83.32.177.16]) by smtp.gmail.com with ESMTPSA id k15sm2197819ljc.39.2019.02.16.11.58.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Feb 2019 11:58:37 -0800 (PST) To: Jani Nikula , David Airlie , Daniel Vetter , Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm: panel-orientation-quirks: Add quirk for Lenovo Ideapad D330 Date: Sat, 16 Feb 2019 20:58:34 +0100 Message-Id: <20190216195834.6245-2-howl.nsp@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190216195834.6245-1-howl.nsp@gmail.com> References: <20190216195834.6245-1-howl.nsp@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 18 Feb 2019 08:09:37 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sEewwVldiVo8/h78D93x9qitcL+iOuoFQE+TsRRKcQo=; b=vB6pwwWx6iirTZGEEgg9ymRjs6VBmqyLrjsYsIMjKgf9sxMfe5ox3qMeE7h1NHmon5 hfO6vvygHCyZBx0OwaSzsqvua9Jd8en1za5ZKJoTFzfSDDT0P5zjo4Ax0jXi1WfZgII3 oXBe0IAbfmC7Nftbx9XLppXmSyK6GXQvOhuQrCS3hE03DYxftPv505/KKkcNlG0TWFI7 6j3hvVVAzXWBABBSDn97JRA6nyIfWDWPvLoO7rIzyEacVHKw7h0aKDcMcZlcVeBYrjbg uEqkW7W4nqEm/V56QEG59DW8g4D/X7MGN0QV4KWVTFqwlBqDOAjo1ZsknqD+m1w+QOnt Jy2A== 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: , X-Patchwork-Original-From: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= via dri-devel From: kernel test robot via dri-devel Reply-To: =?utf-8?q?David_Santamar=C3=ADa_Rogado?= Cc: howl Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: howl Lenovo Ideapad D330 Pentium CPU version has 1920x1200 LCD. Console ouput gets rotated at boot as Miix 310. Signed-off-by: David SantamarĂ­a Rogado --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 61d3361381b7..835574e2d5bf 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -80,6 +80,12 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { + .width = 1200, + .height = 1920, + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, +}; + static const struct dmi_system_id orientation_data[] = { { /* Acer One 10 (S1003) */ .matches = { @@ -130,6 +136,13 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"), }, .driver_data = &itworks_tw891, + }, { /* Lenovo Ideapad D330 */ + .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 = &lcd1200x1920_rightside_up, }, { /* * Lenovo Ideapad Miix 310 laptop, only some production batches * have a portrait screen, the resolution checks makes the quirk