Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 465F7C7EE23 for ; Mon, 27 Feb 2023 12:23:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbjB0MXJ (ORCPT ); Mon, 27 Feb 2023 07:23:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbjB0MXG (ORCPT ); Mon, 27 Feb 2023 07:23:06 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D090CA2E; Mon, 27 Feb 2023 04:23:04 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DFFED1FD63; Mon, 27 Feb 2023 12:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1677500582; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mnCaGxLM9o5v+srx8eCrRSPyZtndDAvxj3Myw/6GoFE=; b=kSqbc45voUU9N4EwiF4i9ogkNjInIHniJKd0yh7TKyJSCW/hIbKboorkfvFrJddZF7/stG G3nBFqlHdRktKR1Qci5EOg0yp4MBI5ndVd93D+GHXcEyLWp2MYqI/DOC1VW7S4sdOIooKG 9y4D/YWil/RnqxtIZc4jzdwBIVhLy8k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1677500582; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mnCaGxLM9o5v+srx8eCrRSPyZtndDAvxj3Myw/6GoFE=; b=E5KYuE3Z7IQPbA1dtW4HUc4hR1sBmAC7ihHsLMXNw9t9dCMek9YZRATadX9BZFuQL3rd4z hhS5xmc3wtr+VhCQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 69DAA13A43; Mon, 27 Feb 2023 12:23:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ISg+GKag/GMVPgAAMHmgww (envelope-from ); Mon, 27 Feb 2023 12:23:02 +0000 Date: Mon, 27 Feb 2023 13:23:00 +0100 From: Jean Delvare To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Allen Ballway , Jiri Kosina , jikos@kernel.org, benjamin.tissoires@redhat.com, groeck@chromium.org, alistair@alistair23.me, dmitry.torokhov@gmail.com, jk@codeconstruct.com.au, Jonathan.Cameron@huawei.com, cmo@melexis.com, u.kleine-koenig@pengutronix.de, linux-input@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.15 10/25] HID: multitouch: Add quirks for flipped axes Message-ID: <20230227132300.4a3c3fad@endymion.delvare> In-Reply-To: <20230227020855.1051605-10-sashal@kernel.org> References: <20230227020855.1051605-1-sashal@kernel.org> <20230227020855.1051605-10-sashal@kernel.org> Organization: SUSE Linux X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.34; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sasha, On Sun, 26 Feb 2023 21:08:33 -0500, Sasha Levin wrote: > From: Allen Ballway > > [ Upstream commit a2f416bf062a38bb76cccd526d2d286b8e4db4d9 ] > > Certain touchscreen devices, such as the ELAN9034, are oriented > incorrectly and report touches on opposite points on the X and Y axes. > For example, a 100x200 screen touched at (10,20) would report (90, 180) > and vice versa. > > This is fixed by adding device quirks to transform the touch points > into the correct spaces, from X -> MAX(X) - X, and Y -> MAX(Y) - Y. > > Signed-off-by: Allen Ballway > Signed-off-by: Jiri Kosina > Signed-off-by: Sasha Levin > --- > drivers/hid/hid-multitouch.c | 39 ++++++++++++++++++--- > drivers/hid/hid-quirks.c | 6 ++++ > drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c | 43 ++++++++++++++++++++++++ > drivers/hid/i2c-hid/i2c-hid.h | 3 ++ > 4 files changed, 87 insertions(+), 4 deletions(-) > (...) Second rule of acceptance for stable patches: - It cannot be bigger than 100 lines, with context. Clearly not met here. To me, this commit is something distributions may want to backport if their users run are likely to run the affected hardware. But it's out of scope for stable kernel branches. Thanks, -- Jean Delvare SUSE L3 Support