Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9046169pxu; Mon, 28 Dec 2020 05:19:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyz8xk/QMPtjeV5x2/Af0x/msX41ALYuAqAj27Rk9MdpECpnqVEb+twdLHzCOy47xumdXPh X-Received: by 2002:a17:906:229a:: with SMTP id p26mr41618690eja.291.1609161563263; Mon, 28 Dec 2020 05:19:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161563; cv=none; d=google.com; s=arc-20160816; b=cxROoFusT3X9KscGylujh90gEJD2VfM/lM3CeaQaengcF/LnDB9yjbYn5/YuXieHcr kEnngV71TuWv7jSbkcCZIl7V8OiCU7r0lgriCBCFq4MmkZ2eTwv+o9TtmfUTJiJ7kdRg 5ursWmyqZNKdkFkPPE9/cfZW/yGTA8yp7DhsohDtztaaLO+wF/HoBncgnWy3GMmp9RAF zw+9fTG+qN53MXdxfdI7tCbSZdfGyj/Vol9twumikwr8B5/KlVKAdsZZvSHjGJAUX7YA AtABecrbTeSxsfS5Tg0dP3uxY43KefXNOilycK9lU/bzDsR793WpwSb2EqtKIRasv+jK JSpA== 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=C2OuCha0GaMOOKy/RmWyz18Ji3uItgmfEYuE7e4p2FI=; b=vIrlM/abIuWEd0hSmsFSEjpV65Xf/aoOt2q3f7vf7NeFQy82EVJQZdXiNJbk6vnvkP 6CWeJl/XgP5Qtq41Qyu2JSmp7EfKpNz0dqc+8Slt2Yhj7n5uipGqUvcgiBN0xSCK2IKL +DT2K7VHvj4ONgXeyse0AN6hmTRq0Ns9Pb6cT9/sBRvxwzikSjdMAFL9uusyAfmQO3S2 zkqXrSMDDZXathdCh1o7nsrS9zkUG4YFlKxUL6IaeSfobEQE7pb9urXdauOcXShmMJ5M laNejNlC5+pZ0Ad/tCni6/oXBS5s0SLQhFW5ptfbcJ86t0d/uRS/9TEgrFDR5AS+noRs OBxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ITj8sfer; 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 h9si19661924edz.579.2020.12.28.05.18.59; Mon, 28 Dec 2020 05:19:23 -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=ITj8sfer; 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 S1731485AbgL1NRC (ORCPT + 99 others); Mon, 28 Dec 2020 08:17:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:44606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733085AbgL1NQO (ORCPT ); Mon, 28 Dec 2020 08:16:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 66754207CF; Mon, 28 Dec 2020 13:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161334; bh=Vp37tht4LYIiuS99/4aMDCAyv9doVc/dWN+7hCcm6Kg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ITj8sferiwbitA8BT9SQIpXuANhRE67QoV4ZMi5T+zTBTtQQtruZTF0G1SHtvvct7 IdUaxEtbsg7CP134LiJdZKwWOkVQ5naF7NyZZZW8eaaS5wlYvNf7DbScuJwGwyZ4u9 aQ9gIb0aXlDSaMd4qHERnCPQopnxTgLJBRhILZ7M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Simon Beginn , Bastien Nocera , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.14 180/242] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet Date: Mon, 28 Dec 2020 13:49:45 +0100 Message-Id: <20201228124913.542046828@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link: https://lore.kernel.org/r/20201117004253.27A5A27EFD@localhost Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/touchscreen/goodix.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 777dd5b159d39..87f5722a67829 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -101,6 +101,18 @@ static const struct dmi_system_id rotated_screen[] = { DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"), }, }, + { + .ident = "Teclast X98 Pro", + .matches = { + /* + * Only match BIOS date, because the manufacturers + * BIOS does not report the board name at all + * (sometimes)... + */ + DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"), + DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"), + }, + }, { .ident = "WinBook TW100", .matches = { -- 2.27.0