From mboxrd@z Thu Jan 1 00:00:00 1970 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=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 0A65FC43603 for ; Wed, 11 Dec 2019 15:49:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BEFCC208C3 for ; Wed, 11 Dec 2019 15:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576079374; bh=keoRuJZDtPV9Cj0nbieyCEu76X/Jj26sIem2+X/AXJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=L/jfMpW4BuOxLPoVCZMPZcLwcA7DfVisrEd1EeabINLM52a0PWDMdNgfre1o1anOD 0hLnZa2UEbrTTVKXEgQA4TFTvaK/mvHjxdoWffjbu3FncTZP7GqEayBA7ozQQxmQ5r 3PCDbZmvQCuZALH7BMbAefl5q96NjaCgGpC+9PFs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732882AbfLKPYp (ORCPT ); Wed, 11 Dec 2019 10:24:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:56106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732870AbfLKPYl (ORCPT ); Wed, 11 Dec 2019 10:24:41 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 840052465A; Wed, 11 Dec 2019 15:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077881; bh=keoRuJZDtPV9Cj0nbieyCEu76X/Jj26sIem2+X/AXJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uzpvCTx9LjCoBNQ0A8rnw22qpWzrpLyeEkQ3DtVzKFXM3QjbgfXKuOKStha1LkzMg Xjefbq4ZTLqqHL9u+rX5sFsBRwLq7jZcwc/UNU+yP22L40pGdkPqbUx1dxnvhRq2MZ cx6lIk/I/lI2qLCk+amAgALdyNmMqMHAB+UBXFwg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Bastien Nocera , Dmitry Torokhov Subject: [PATCH 4.19 207/243] Input: goodix - add upside-down quirk for Teclast X89 tablet Date: Wed, 11 Dec 2019 16:06:09 +0100 Message-Id: <20191211150353.155465383@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150339.185439726@linuxfoundation.org> References: <20191211150339.185439726@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 commit df5b5e555b356662a5e4a23c6774fdfce8547d54 upstream. The touchscreen on the Teclast X89 is mounted upside down in relation to the display orientation (the touchscreen itself is mounted upright, but the display is mounted upside-down). Add a quirk for this so that we send coordinates which match the display orientation. Signed-off-by: Hans de Goede Reviewed-by: Bastien Nocera Link: https://lore.kernel.org/r/20191202085636.6650-1-hdegoede@redhat.com Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/touchscreen/goodix.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -128,6 +128,15 @@ static const unsigned long goodix_irq_fl static const struct dmi_system_id rotated_screen[] = { #if defined(CONFIG_DMI) && defined(CONFIG_X86) { + .ident = "Teclast X89", + .matches = { + /* tPAD is too generic, also match on bios date */ + DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"), + DMI_MATCH(DMI_BOARD_NAME, "tPAD"), + DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"), + }, + }, + { .ident = "WinBook TW100", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),