Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp470571imw; Thu, 14 Jul 2022 05:07:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vs6Y2ZAsp1r/G4QHAfS2+3K+p35VNs+1nbUGgoJcV39FzKbRjUklSRcTyR7K/Bl7Q1dM/E X-Received: by 2002:a05:6402:50d0:b0:43a:df6d:6f4d with SMTP id h16-20020a05640250d000b0043adf6d6f4dmr11909408edb.72.1657800425703; Thu, 14 Jul 2022 05:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657800425; cv=none; d=google.com; s=arc-20160816; b=t2e163ZlkrfGnAyPAXqOAPWXFARol5bXBcjuXeMUU8rFowMVMpPD0fdhlSu/Uipm4X cbNp6dL3Qz4W6hE8Uq46iqppvspTCHj3T34Dn3FtRRhKBZU4gFuMhuJ2hDZ9KOFqogqJ iVrkqgSC2m74T7ZredkWNHX/OkSzM+5DXaulnY4jSAb3HZ4PjA5qHYLBpPdzu22UM2FI EctLJWEPq98sjk9l99rPMEg8okbbKXqPUKQ8//jj+Nu0hurZyNZ4G1SNaSEP4k8t7m/F qgfO3ntcN2hLbkc3wDKbsSY/+pYli0e0+nKXlHpGZ+UVFlpZfjnL//ZRM4dAxARivMwd lvbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0PCHVAL4nEiI5aweWvrcRhJdp6mA0PDDM+ymg8KS/rM=; b=M/Vd3cRXK9VUrQm0yot9PsSFUlAsTZeEWN2dcdJD/pPLfuGjs0SC8JhwvC3Tt16kwR kJYaQkQS5l6EHD3RbAgiULm7Sy5eyiYxzC6tBwrdwzm5ed7kEor982Rfye3a9e5Apc7h hBh6sAQ5aiv8qfcXY+pHSsz8adFvg3AlvjZH6+5m5jrKiEOhMS4dYJyyCMN6qkyvdLst Nl9HXRXYigYL2jPa5kasEpIBzDItOH64p/fNsg2di/kv4mzPr1EBrujrYWOn6in+zRHR ZeskAbtnYrIIJSQtUIZRie6CTlVUq/vqOiNyAoCSAfv5wU+MCLxzeYKfgUhW1p/TIl0c OMNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SdYBnnIR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a05640251d100b0043a52317e54si1936285edd.391.2022.07.14.05.06.40; Thu, 14 Jul 2022 05:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SdYBnnIR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238904AbiGNLc6 (ORCPT + 99 others); Thu, 14 Jul 2022 07:32:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238881AbiGNLc4 (ORCPT ); Thu, 14 Jul 2022 07:32:56 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 794F32DD3; Thu, 14 Jul 2022 04:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657798374; x=1689334374; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WtBev9dHMwuukNjd40pA16rIrhzGg5WZruaX/rRQtr4=; b=SdYBnnIRNt5+zeZfIl1/br5o78Qce+7WsUE8Es6PdhbsQu6+Ha5Z0sLb Fq9Hw8ojxyWICYawYLlRh0JDHgYoKl9uIXPLQFCAb2ktL4sgnAFOD2b1U 4uRdNYUGg+dYPxvSSpDet7c/1blGabS1zlUKXkv4twPJpiOcj51ZERItq hWABd67Leio3AhGbKqqCfS37AorOOlhcO2GkoN8F7zr+Ajn0W5blQO7F0 so5JZr5uF9afFnq4szyk5EnOR1D2fcu9UexMiiXMPigQ14EeOB5K560uN X4HgoC/cXpIlQC3GpWEl51ew6VfzcJkGnKVYL8fNFmcdZu1kx9z7LMRSz w==; X-IronPort-AV: E=McAfee;i="6400,9594,10407"; a="349454318" X-IronPort-AV: E=Sophos;i="5.92,271,1650956400"; d="scan'208";a="349454318" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 04:32:53 -0700 X-IronPort-AV: E=Sophos;i="5.92,271,1650956400"; d="scan'208";a="842112922" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 04:32:51 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oBx5M-001DC3-0A; Thu, 14 Jul 2022 14:32:48 +0300 Date: Thu, 14 Jul 2022 14:32:47 +0300 From: Andy Shevchenko To: Luca Ellero Cc: dmitry.torokhov@gmail.com, daniel@zonque.org, m.felsch@pengutronix.de, u.kleine-koenig@pengutronix.de, mkl@pengutronix.de, miquel.raynal@bootlin.com, imre.deak@nokia.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Ellero Subject: Re: [PATCH 1/3] ads7846: don't report pressure for ads7845 Message-ID: References: <20220714084319.107334-1-luca.ellero@brickedbrain.com> <20220714084319.107334-2-luca.ellero@brickedbrain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220714084319.107334-2-luca.ellero@brickedbrain.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 14, 2022 at 10:43:17AM +0200, Luca Ellero wrote: > From: Luca Ellero > > ADS7845 doesn't support pressure. > This patch avoids the following error reported by libinput-list-devices: > "ADS7845 Touchscreen: kernel bug: device has min == max on ABS_PRESSURE" Missed period, otherwise looks good. Reviewed-by: Andy Shevchenko > Signed-off-by: Luca Ellero > --- > drivers/input/touchscreen/ads7846.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c > index bed68a68f330..24605c40d039 100644 > --- a/drivers/input/touchscreen/ads7846.c > +++ b/drivers/input/touchscreen/ads7846.c > @@ -1316,8 +1316,9 @@ static int ads7846_probe(struct spi_device *spi) > pdata->y_min ? : 0, > pdata->y_max ? : MAX_12BIT, > 0, 0); > - input_set_abs_params(input_dev, ABS_PRESSURE, > - pdata->pressure_min, pdata->pressure_max, 0, 0); > + if (ts->model != 7845) > + input_set_abs_params(input_dev, ABS_PRESSURE, > + pdata->pressure_min, pdata->pressure_max, 0, 0); > > /* > * Parse common framework properties. Must be done here to ensure the > -- > 2.25.1 > -- With Best Regards, Andy Shevchenko