From patchwork Tue Nov 17 00:42:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Beginn X-Patchwork-Id: 324822 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5B12C388F9 for ; Tue, 17 Nov 2020 00:43:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9105E24683 for ; Tue, 17 Nov 2020 00:43:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731292AbgKQAnJ (ORCPT ); Mon, 16 Nov 2020 19:43:09 -0500 Received: from emkei.cz ([93.99.104.210]:54527 "EHLO localhost" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726523AbgKQAnJ (ORCPT ); Mon, 16 Nov 2020 19:43:09 -0500 Received: by localhost (Postfix, from userid 33) id 27A5A27EFD; Mon, 16 Nov 2020 19:42:53 -0500 (EST) To: linux-input@vger.kernel.org Subject: [PATCH] Input: goodix - Add upside-down quirk for Teclast X98 Pro tablet From: "Simon Beginn" X-Priority: 3 (Normal) Importance: Normal Reply-To: linux@simonmicro.de Message-Id: <20201117004253.27A5A27EFD@localhost> Date: Mon, 16 Nov 2020 19:42:53 -0500 (EST) Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. I added it also to the list of those devices. Verified it works on my device - this has not been tested with more users than myself... Signed-off-by: Bastien Nocera diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index f8dd416c89b2..7668174b62ed 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -136,6 +136,16 @@ 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 = {