Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2300595ybl; Thu, 19 Dec 2019 11:13:33 -0800 (PST) X-Google-Smtp-Source: APXvYqx/pPTglkFBxSFrc8xSxLHL28jEVDfTOvMhhzVHPT5HDgT2m140b+aKiUiZEFmlL1U0Wy6q X-Received: by 2002:a9d:39cb:: with SMTP id y69mr10938130otb.283.1576782812902; Thu, 19 Dec 2019 11:13:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576782812; cv=none; d=google.com; s=arc-20160816; b=Q+tVi1SBqiHAsFwiXJEypbgSiVL4k3DmP/+FGwHvxN7zK6jLl2XweRvZ4J6fZ0QQ3r 8QYWXTzOGm7u998aP32DoR7K/uISsykaOmPo3yDvn2/PPhdn4v3ikRJYkMO4h/vJo9ZR 1i2aW6GWzwdt6FKjvA8Htj+zZmcVkyLUVIpw353xu9OjQI0gUoiwScxwIBa1Obiqahwl ODKJ0RMuxjS8ZwCnvQFI7/mBtehJCOAxidnwrv0K/hXZoZ7ZgeHeCpyr3cEtpbvqXaqS bhH6b+wOMZeuXggwfQ8RF/bj3Tcrl1/YPYC1XAzXvtZn+E71ddHxs+PVOIfNjJQ/w05h vjzQ== 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=cK6iTBZmbe2pnTCgcroGjP2Rc9Yg1Ky9f78GXm9ONks=; b=F+pFEJN6RTjA19ZKzpMvY+YKo96nrcQIeq7ZBSGVTiStotttI54Se3fLmCq/qd+sjK zSCfKhL+od1n+rr1D8pE9NTfqeNT+pTI07/oT9/Gcar2/OG/D9jS+jrirJK9b1gwSElK aFgi/WeFzArp8VwIKMRcw2oEQGsQE4WbqHsgSzjZFiP7bJEbV5O/uxDz8EGPo5RYl7Ne n2MRgryAcgKfA4JhU0MugFnDycUggd7wPJg/jTTF/uYQqVlL+riqhfFb7ZY3bnK6b9kD RSNLiqCV+uQI+NM5EppzULGI0/pT6yuq0DGhD9sLzLPIoR6eJwnPe/m32LD8ud1BLlFh 1hyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ikpc+S8w; 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 h14si3987664otn.6.2019.12.19.11.13.20; Thu, 19 Dec 2019 11:13:32 -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=ikpc+S8w; 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 S1728176AbfLSTMH (ORCPT + 99 others); Thu, 19 Dec 2019 14:12:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:54918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727803AbfLSShW (ORCPT ); Thu, 19 Dec 2019 13:37:22 -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 B274E24679; Thu, 19 Dec 2019 18:37:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576780642; bh=zNdlusR2Sv4avD7h8Dyy/P2eJzLsf8rNV+gSpzi0RJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ikpc+S8woOAom0rPWmvXpIH38wu2TV1oJidmRlpv+tvDuam93NXAdiJcfYb9OD3i5 lH0VtIb2lnxY2Wui0I+WHz83Hp4tLehthwPYVQrGC0tmPKHFnAI77Z07qhiZarAC+j JZdnyBEc1qcZpazmpl70d2Zy6Sl6vyCO6EwAVgNE= 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.4 057/162] Input: goodix - add upside-down quirk for Teclast X89 tablet Date: Thu, 19 Dec 2019 19:32:45 +0100 Message-Id: <20191219183211.343179482@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183150.477687052@linuxfoundation.org> References: <20191219183150.477687052@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 @@ -69,6 +69,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"),