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=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 689B9C432C0 for ; Mon, 2 Dec 2019 10:16:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 44659217D9 for ; Mon, 2 Dec 2019 10:16:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbfLBKQi (ORCPT ); Mon, 2 Dec 2019 05:16:38 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:37917 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727332AbfLBKQi (ORCPT ); Mon, 2 Dec 2019 05:16:38 -0500 X-Originating-IP: 83.155.44.161 Received: from classic (mon69-7-83-155-44-161.fbx.proxad.net [83.155.44.161]) (Authenticated sender: hadess@hadess.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 2972920009; Mon, 2 Dec 2019 10:16:35 +0000 (UTC) Message-ID: <99ff833f27ce999e334d43ac511b6032f2668dc6.camel@hadess.net> Subject: Re: [PATCH] Input: goodix - Add upside-down quirk for Teclast X89 tablet From: Bastien Nocera To: Hans de Goede , Dmitry Torokhov Cc: linux-input@vger.kernel.org Date: Mon, 02 Dec 2019 11:16:35 +0100 In-Reply-To: <20191202085636.6650-1-hdegoede@redhat.com> References: <20191202085636.6650-1-hdegoede@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On Mon, 2019-12-02 at 09:56 +0100, Hans de Goede wrote: > 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 Looks good Reviewed-by: Bastien Nocera > --- > drivers/input/touchscreen/goodix.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/input/touchscreen/goodix.c > b/drivers/input/touchscreen/goodix.c > index fb43aa708660..0403102e807e 100644 > --- a/drivers/input/touchscreen/goodix.c > +++ b/drivers/input/touchscreen/goodix.c > @@ -128,6 +128,15 @@ static const unsigned long goodix_irq_flags[] = > { > */ > 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 = {