Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2809384rwb; Fri, 20 Jan 2023 07:38:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXvTMqY7737ddUm2aN/IiS9jJUNYqD1tmG/Wdfkx4DkWqKy+e4/gNg6u8DPkikJmmI3mRlGi X-Received: by 2002:a05:6402:520a:b0:49e:a080:d55f with SMTP id s10-20020a056402520a00b0049ea080d55fmr5754495edd.18.1674229082960; Fri, 20 Jan 2023 07:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674229082; cv=none; d=google.com; s=arc-20160816; b=OtAzIsBzGkRTPaNOcmB3GktKpxpPN3d/tFhGERjJ84hMe1cQz6VzCFUMHKShsV+W2X g325rYW+S1gk+BbNwKFP8aMyubGuchhR6kK7BR6SidN8eMAp4uVcgxikLLTrrzSk5aD4 ucYVhko6bzWacG+1s3N5Gq6u5xhzITeaxoog/lYwZ5BZr0cjEEL1EjUhQ3Dr+lSU5mFO 3mvTWUGYEiMJzDwjERsqrA5MFOcKmDWft3wUWuJLWpz/4qk6mw85TUDItI7l/KBfKqhI 3rIHPUqCe2OU8QPFxNFaYVrsZSam5RTip47b+9UXI9BFIuzLNEM376ll+noqUWOChQR2 NlXw== 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=PfPzE/L6zUp88ADCFZ3MW8PBzjPw4BcWcWWZc1M8SBQ=; b=Sb4Xc1h9exbteET7GjmvQUoO+ec5vYCH2wSTlGcmiQ79GzljDogw2PopZOyfEeEx2m ucxTiazj/8VGurG0nhf/7DnY5d1pN8mpsB+GfwmuanAk+l36jI0xok9aoaZdpVG2cSIc 1plLlXJEx0ENsJEPK1xIxx+Wmru4KdmcA2KqYE16BMj338SqjZkiQc+wH9eD61achcqu kS/rAWXRiY76JMPwN6yWa6ZDV9LuS0O8M0Ok2t+lt1gFs156sncZGxT0w1wXfMqH+7Lx 2j3uDY9/860gnKV/rWrsb9GUFOo9AyYSE+Js9ar6NIaDls9NeUOnPIJY80ENrtwoJth2 lYjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AVaDPTvR; 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 w6-20020a056402268600b0049e420baaeesi13800821edd.470.2023.01.20.07.37.50; Fri, 20 Jan 2023 07:38:02 -0800 (PST) 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=AVaDPTvR; 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 S230364AbjATPRN (ORCPT + 49 others); Fri, 20 Jan 2023 10:17:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbjATPRM (ORCPT ); Fri, 20 Jan 2023 10:17:12 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69E322D42; Fri, 20 Jan 2023 07:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674227831; x=1705763831; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1DKDhX2aS6+ehqAJu8VWeSS88MeJAdJ3MEj7/2+SAv8=; b=AVaDPTvRPOy1ayGkk7BSj2Sq3cb0hwiur1VYgxUwarM6FeDsB5rm/3me LgYb/QK/rxhZeh2eMwpV6tfOFAEB6TI8LEkFDVyy/sA56KJnxV8XC6Nir JUiskelsilSlkL0dStU9KCgUqNvkXzaZkdjn9QOSpIA+LIY4Iv4PUZ13B eeBE+YEL6/pYDQxaQbzM+F2GnCPiIkrntwRZ1LCtBPiB3YyFzfGhkcLt9 lkKKbXgBm4O95BB3LDAsMwSOnKFCvzWrshDmjsa6ky9pN8pcy9VUYHccd WJHVJYK1foBG1ei19nf4aRWCMhPsGDl22kf57GhSJpet6LtywtQrN07JW Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="387961875" X-IronPort-AV: E=Sophos;i="5.97,232,1669104000"; d="scan'208";a="387961875" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2023 07:17:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="723977921" X-IronPort-AV: E=Sophos;i="5.97,232,1669104000"; d="scan'208";a="723977921" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008.fm.intel.com with ESMTP; 20 Jan 2023 07:17:07 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pIt8b-00CHXa-2f; Fri, 20 Jan 2023 17:17:05 +0200 Date: Fri, 20 Jan 2023 17:17:05 +0200 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, luca.ellero@brickedbrain.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] Input: ads7846 - always set last command to PWRDOWN Message-ID: References: <20230120124544.5993-1-l.ellero@asem.it> <20230120124544.5993-3-l.ellero@asem.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230120124544.5993-3-l.ellero@asem.it> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 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 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 Fri, Jan 20, 2023 at 01:45:43PM +0100, Luca Ellero wrote: > Controllers that report pressure (e.g. ADS7846) use 5 commands and the > correct sequence is READ_X, READ_Y, READ_Z1, READ_Z2, PWRDOWN. > > Controllers that don't report pressure (e.g. ADS7845/ADS7843) use only 3 > commands and the correct sequence should be READ_X, READ_Y, PWRDOWN. But > the sequence sent was incorrect: READ_X, READ_Y, READ_Z1. > > Fix this by setting the third (and last) command to PWRDOWN. Provide a Fixes: tag? > Signed-off-by: Luca Ellero -- With Best Regards, Andy Shevchenko