Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp824140ybl; Wed, 11 Dec 2019 08:04:19 -0800 (PST) X-Google-Smtp-Source: APXvYqx+AngdFzKS5H1DDIr92vYUJaO+bz6bKtzqK+Ry3jahoawqgu6pKE8QVOBYBxCUC06TNXgG X-Received: by 2002:a05:6830:2046:: with SMTP id f6mr2946306otp.206.1576080259418; Wed, 11 Dec 2019 08:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576080259; cv=none; d=google.com; s=arc-20160816; b=FefL4O96CC6rRNlEdOD1s3laEKD3DMG+3/D8Kg5IF80od0kD/YvbPZiMqHC8AzvZSd wgq4NHVAml+18wKQgfB7sZHxEqF+9PR0WfI2UGbk9ADuzRWEjM3WKVPOIXsAduZXDPpG TFKYgJo4rqjWBoAUnkJMrsXoBpm2q7fVyKqLvNyQKs2klYef3zuczAxenuM5igT4gk91 VkdwMub7TE43z4pQE6cWQmQWqxfCQfukOikP+Kc5rMVSnCYlX//cNAIvhHpBQone4ssG DYM6mALfeNc7xHrvBtg1BMBhGE0lfKBxpQfZXON68vUPLXLlHHqt7yNUT2EaBDXzAXSC UNbQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Xd4jYZgf7+1oSVzPVGuzbPE0oC6eRVwlnejO/MioEts=; b=qKsMnKuPRQ/s+4zxpX1OycS0B6nCaY74b1hqAX9SiltwiEo+OJT156ccRecC4gyVkT 0jUQ7f1QpD/FmyR7fcrJOp0UgE0/kNQ+xJlQkdcVF/R8nim5KDocAcJjNf7MQzwEzrGf f5h0vG9pcJmxM5TrkXlIefSykaaKXSqfyFxhCqAzxBtzWHBl/eb0bZtrXr7fWFSO+YTN 8Y/gQoTYF1AHMHPDRjRnsasbAce2zpJ/QOcOoiXkBt+SZgqdhh6qpoV1oG8yD/mUTN3U HTGp6qWhKPYM0w54AVisK4i4bEfA8v9d2qUW0RihG3BLofkcRg6fp+ryjPgja/eecTbo NHRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PinAiwY1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o25si1325926oic.63.2019.12.11.08.04.02; Wed, 11 Dec 2019 08:04:19 -0800 (PST) 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=PinAiwY1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730678AbfLKQBf (ORCPT + 99 others); Wed, 11 Dec 2019 11:01:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:36988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731419AbfLKPN2 (ORCPT ); Wed, 11 Dec 2019 10:13:28 -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 65ACB2467A; Wed, 11 Dec 2019 15:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077207; bh=RzNCs8S3ckMl0QtLvNUcHCyuJiZfIk4C+x/j7Srm+o8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PinAiwY1hgjCxBBb4fX2xzuURgVinm2o71+stSOC74qRzxaBxCAHveL7zLJTIyjsm xqpdAKoz3iQJ/7pq/u+nh38CPmGNAb4cL8gWzgzHAcbbbFgJq3yS0oUn8oe62/pclr P1xtyZ6PzMzlpoX9dXE88g9KVxOkB+lXvh2wwcds= 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 5.3 058/105] Input: goodix - add upside-down quirk for Teclast X89 tablet Date: Wed, 11 Dec 2019 16:05:47 +0100 Message-Id: <20191211150243.842708344@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@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 @@ -127,6 +127,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"),