Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp256198ybd; Tue, 25 Jun 2019 20:52:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD6dqGqiN4fGb2n4QAxIKjkBP2ZuMKcTI8XMjmnb1b14xoDoZRmDikJFc5pvBoRAYvkEdU X-Received: by 2002:a63:78ca:: with SMTP id t193mr649135pgc.10.1561521141868; Tue, 25 Jun 2019 20:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561521141; cv=none; d=google.com; s=arc-20160816; b=ffT/sYAwNmXChLOIgttYr11NM51F6/VWM7ybpHSrFk/ueFMSTTHpJZeIz6W39Cgv0Z 0hnnijGuoupIIhC5jmjoI8zhB9XR0U+4WCYqwRrRX3eLLRnfV4bOuDGcBMMy+MyiiSIp 8KbJYq58jVHcLEdjRuTYrOF8j0sILOx39mRjceBPerOj4jm4j3Hk4oL0FupuAmuBCocM nCKVU2/I5YmTrdiOHRMKVbMY+2DgmI9ZjtX+17C65FZ/OPsv1UHSJ8wmYNQeuWSR7pMC K8JZeDy/ArN6OShj+hb93vnD2ztNJjI0nPvdolCFypIxrEF+43NS/kBBGyBNyXb+j7rd 8T4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H7rlj1NMHd5gs3DxFz95WTQflekDLodULrc1zsHyZRY=; b=wN3iGJ/j7iE6OJZwZebEUuwLas2lXDzl/aFb7evFB7aSjPk7pUJLM6Mj7TmOwBFFIZ FH6TcKr3IKgHC+k7wPK3AWenGsEDvANRbepHu1Wube7E/QbzNHrPOhwZEU+VZQgkKXpW L6XwBGVf1mj/dHHSaLGyaTR5KbsHooll7OGRQThALrkdZhebOeKABL2+AFouYmGLiAnJ FWTSkLTs9IWIrGxpm1Zx9FJf8ae3aNpC3rmLJnaG7ksDZzjWPns/LPtFeIF2D4o1TilI o8PDPIBMc0Tl5fpuTkkljMYVm788aOM/Bj5z08Y2vp9ReUqcu+L1hGuStae28Y6h11pd /Mzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hXv8rGuN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id r41si851061pjb.11.2019.06.25.20.52.06; Tue, 25 Jun 2019 20:52:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hXv8rGuN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727248AbfFZDnJ (ORCPT + 99 others); Tue, 25 Jun 2019 23:43:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:54100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbfFZDnB (ORCPT ); Tue, 25 Jun 2019 23:43:01 -0400 Received: from sasha-vm.mshome.net (mobile-107-77-172-74.mobile.att.net [107.77.172.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB897214DA; Wed, 26 Jun 2019 03:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561520580; bh=1wsHi0IjxJ2SXkpBDh58k2aubv8o1tUvhUoqVssLEJw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hXv8rGuNoZ501JQflWwaMaq6iyWowk/oByByptS1Kww306Fee2McKCN7ZYwH2xfQ4 XPaynL+9rofpaq9pSfJRLhu7B/SVCayzcxRU/vtIoT2s37n7ynNWeakpLFz8qriJJE SQR4RnPVeDuXNpk4lcnn1maGVJ97qNp4R7V3QRsA= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Maxime Ripard , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.1 37/51] drm: panel-orientation-quirks: Add quirk for GPD MicroPC Date: Tue, 25 Jun 2019 23:40:53 -0400 Message-Id: <20190626034117.23247-37-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190626034117.23247-1-sashal@kernel.org> References: <20190626034117.23247-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 652b8b086538c8a10de5aa5cbdaef79333b46358 ] GPD has done it again, make a nice device (good), use way too generic DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly). Because of the too generic DMI strings this entry is also doing bios-date matching, so the gpd_micropc data struct may very well need to be updated with some extra bios-dates in the future. Acked-by: Maxime Ripard Signed-off-by: Hans de Goede Link: https://patchwork.freedesktop.org/patch/msgid/20190524125759.14131-2-hdegoede@redhat.com (cherry picked from commit f2f2bb60d998abde10de7e483ef9e17639892450) Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 019f148d5a78..dd982563304d 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -42,6 +42,14 @@ static const struct drm_dmi_panel_orientation_data asus_t100ha = { .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, }; +static const struct drm_dmi_panel_orientation_data gpd_micropc = { + .width = 720, + .height = 1280, + .bios_dates = (const char * const []){ "04/26/2019", + NULL }, + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, +}; + static const struct drm_dmi_panel_orientation_data gpd_pocket = { .width = 1200, .height = 1920, @@ -101,6 +109,14 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"), }, .driver_data = (void *)&asus_t100ha, + }, { /* GPD MicroPC (generic strings, also match on bios date) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"), + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), + }, + .driver_data = (void *)&gpd_micropc, }, { /* * GPD Pocket, note that the the DMI data is less generic then * it seems, devices with a board-vendor of "AMI Corporation" -- 2.20.1