Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5858703rwi; Tue, 18 Oct 2022 05:15:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7aPm+MEto2XBHOda6mh+ygrEbVeA27s/ZqAhysv8TF58WiCaOPv0cUTn2vA1aQMMRV13uC X-Received: by 2002:a63:a13:0:b0:440:a593:b79f with SMTP id 19-20020a630a13000000b00440a593b79fmr2322193pgk.557.1666095338737; Tue, 18 Oct 2022 05:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666095338; cv=none; d=google.com; s=arc-20160816; b=acqstjIu4hLoRS2lRQE3aIUa6btbnXZmZNGhQU0FoygSmS/Y6Ct79afKSPOvdjiIOF gkRn8cswH4/5AZYPLZvzn05hxhLI9TuyOeYxMOXANYiPUradAM/DexufZwcRJrCR9Yw5 qX+aFCro6CI3Carc/n4YnwPM1Zh+ejbZHz1BhYUftBFXJ94PdRtWNb6SQM/yEaqvkrWA G7Q35rTNOdSQfhbQ6LMo447cmSRvm08Rfb7i1zm3wHa1dDW/eozdecFfBdqI2lQ/d5UD vQWvxaSoUG3OG+0onAtKSjU6lm6QRv7RRKjxDGgbrusnSWlNDCMoQzL0WwbTp2BqEkmh QMwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Jk0jo8h+bFKZZlklplQl3c4m7akalQuwqDchYrGv+m0=; b=0DjqDNFCMjOihdtLe9CyG3WwWCsgrv1fsd1NRUDBVRjN8g+QrJbjTk2ubFJerAUN/Q 382mVSQximvGbtK6AQwSqf4QfYlmR2ziHy9eu3DX1eDUMsW34P2MS5oc2O9VWHMTrZA0 LutM8cpJ6AOpqrcck4fDBDeN8Arswrjw6yUXlEdhMJWxKh9HU7Q+lPefE8nBLaZakmWJ dgaGeXAbq96Y2URqsefP0YEKdX4/iBAclprOmlC3mVcmxad1Frb+cwn0p9Kclgka9HAc P3lVzOdlyc+tH2nQ5GyvXPgB6vcc6OQe0oD9NeZreDTp+G2+lb10V6tquJnelSk61xW5 5Gag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vizGrCCq; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y28-20020a63495c000000b0045a73a1790asi15524264pgk.613.2022.10.18.05.15.22; Tue, 18 Oct 2022 05:15:38 -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=@linaro.org header.s=google header.b=vizGrCCq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbiJRLyD (ORCPT + 99 others); Tue, 18 Oct 2022 07:54:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiJRLyB (ORCPT ); Tue, 18 Oct 2022 07:54:01 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE864BBE3F for ; Tue, 18 Oct 2022 04:53:59 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id f22so9433243qto.3 for ; Tue, 18 Oct 2022 04:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Jk0jo8h+bFKZZlklplQl3c4m7akalQuwqDchYrGv+m0=; b=vizGrCCqg9RquslozbYx0axYr5kAXiYgqZalRmhoLNFRoinFMu2jkK7AqdvVoC+/fU Mq6x1snsy2T6ky0crXRLuFzSGKtvI6D6FhEU4WN2XjcIwNPPtJaQzr+J630meY9QxpNN NV68HQ7ofumTeJnP5Vvw9IMFM2ODAX1hCARtGUYvu73QQgf181+oOTrE3wBkkFNMUTNV Q8vd+WO+DIoLgDKsWw0e3oYbNDrjdc6NV8EbGw1IaQAN7ebt5MovBDIlrNu3/w3MzTIs YNnmIDfL15Jjphg1ToAIRcYR9LarivoIeqRfumpdAxrGvh60HgcMBsR1FoTHCPBQjzYj m2Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Jk0jo8h+bFKZZlklplQl3c4m7akalQuwqDchYrGv+m0=; b=YRU/KnIKzqtfQo4eexeW3Dl8vyn96gUPmnIRr3Cmyg+DhevpPzLdq0Fc5Y0PWS7hR2 bsKLWWLkIh8AdjKIOJ9wCpTnM0l5ZuWNAuXX06AKrPn0Dik3aneDTcZtfwi2vWZL90wc RnNu6dg0Zae7SL/Amf7EkDkHf63mTDZ4M7wTlwfxWPnJSJOZLUfcQtUGkl0jbI2EbXur /IZIPbGV1JM6opd4Ow95MXahNV1CxmJmLAWzB3rmbUuzl8aWknypMvzY/emE/YEO0h/f FPlzAyoItE1/F1bRFPHT4QwRUKkzZj6iqF5wZXk05hCy4X2zqg+Cd7rL9M7F8j8loyqQ ncGw== X-Gm-Message-State: ACrzQf2o3GiTM9Dw3UAkl4CJxZGStImVuN2dMd+JTqTTPR3N5oGCNZAT 418Fdu7Bre3aFuQXulsBAUtGww== X-Received: by 2002:ac8:5814:0:b0:399:39ca:fd63 with SMTP id g20-20020ac85814000000b0039939cafd63mr1719677qtg.0.1666094039028; Tue, 18 Oct 2022 04:53:59 -0700 (PDT) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id s7-20020a05620a254700b006ec59941acasm2306305qko.11.2022.10.18.04.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 04:53:58 -0700 (PDT) Date: Tue, 18 Oct 2022 07:53:56 -0400 From: William Breathitt Gray To: Kamel Bouhara Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, stable@kernel.org Subject: Re: [PATCH] counter: microchip-tcb-capture: Handle Signal1 read and Synapse Message-ID: References: <20221017225404.67127-1-william.gray@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v/w0JJUH87vcSvz3" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 --v/w0JJUH87vcSvz3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 18, 2022 at 10:13:51AM +0200, Kamel Bouhara wrote: > On Mon, Oct 17, 2022 at 06:54:04PM -0400, William Breathitt Gray wrote: > > The signal_read(), action_read(), and action_write() callbacks have been > > assuming Signal0 is requested without checking. This results in requests > > for Signal1 returning data for Signal0. This patch fixes these > > oversights by properly checking for the Signal's id in the respective > > callbacks and handling accordingly based on the particular Signal > > requested. The trig_inverted member of the mchp_tc_data is removed as > > superfluous. > > > > Fixes: 106b104137fd ("counter: Add microchip TCB capture counter") > > Cc: stable@kernel.org > > Cc: Kamel Bouhara > > Signed-off-by: William Breathitt Gray >=20 > Looks ok to me, thanks. >=20 > Reviewed-by: Kamel Bouhara I'm going to submit a v2 of this patch for the sake of making it a tad easier to backport and also simpler to handle if a lock is introduced at a later point for this driver. William Breathitt Gray --v/w0JJUH87vcSvz3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCY06T1AAKCRC1SFbKvhIj K0QkAP0eR9cEPryA2x+IYRDR8FXE90r5QvhWhohD8jKEagih1AEAlBK3gRZN7Z+z jCnv2ybWps4ZW+XReDxJQqiXk7ydqwo= =P23b -----END PGP SIGNATURE----- --v/w0JJUH87vcSvz3--