From patchwork Tue Nov 10 23:21:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Beginn X-Patchwork-Id: 11895799 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AEA9E138B for ; Tue, 10 Nov 2020 23:30:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9C02F20781 for ; Tue, 10 Nov 2020 23:30:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731558AbgKJXal (ORCPT ); Tue, 10 Nov 2020 18:30:41 -0500 Received: from emkei.cz ([93.99.104.210]:35199 "EHLO localhost" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731234AbgKJXak (ORCPT ); Tue, 10 Nov 2020 18:30:40 -0500 X-Greylist: delayed 534 seconds by postgrey-1.27 at vger.kernel.org; Tue, 10 Nov 2020 18:30:40 EST Received: by localhost (Postfix, from userid 33) id ABA6827BEF; Tue, 10 Nov 2020 18:21:45 -0500 (EST) To: linux-input@vger.kernel.org Subject: [PATCH RESEND] 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: <20201110232145.ABA6827BEF@localhost> Date: Tue, 10 Nov 2020 18:21:45 -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... 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 = {