Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4319027rwi; Sat, 22 Oct 2022 08:14:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54QeCpXDopnZW/h+PgPKIECOSkZseOTdhX8VfQBSTG5AQMa5hDKE8dYt+tdBzMYJU1yA/w X-Received: by 2002:a17:907:2d09:b0:78d:4240:a45e with SMTP id gs9-20020a1709072d0900b0078d4240a45emr20523673ejc.350.1666451669611; Sat, 22 Oct 2022 08:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666451669; cv=none; d=google.com; s=arc-20160816; b=JR7rKMEDdnlNgHVUeJPpHhMzZkjGDV34iTkkXfk+QOo1wDuXwBB5MrxVyLHVd7oRLd C9211UmoNciIYYngz3GfeH4mXi+bVZ32barP5nD4pSMU6jAL7o+1g9lAPKhWM53zs035 4p8nA83Knc8EHjhQsMXx8njo57j2S7mHuZC/1ITDBlzbTgqhT5HvprR9e30OXHe4h8De 5tuupWr9fAoaSbRHLAniHIhHJ4zbkE9+VSNIidwRCuqMp2dxFoBHUMd8erACqM+hQHXo IXn2wmPwr6OBX+qnPeQIRRVgnCTYAXy1WrdqvPJZrLbkbXE3y0+rrkfO9tDos7Yukq3m xqmw== 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=OUYxMIRgDWFP8rLFGxOjoGl3L5oDb12Hz9Ywbqo+k/Y=; b=sHZ2vyS37PW73k9GQs8CPeLvBNfDlyN3ymZIGnbrsWvNgkvl/AeTwu4UCeV5k4oD88 1AGQaqKO6e7DIAN6jpTipAOjTmO7PPujzhWqGtj+hBQ3HOboUkgIBtmlmgQyMZ6KqDZ1 Pn1Skvz984hsdQXCAKQMiTv/I9uBrY0ebHCQjc+A1gZzPomjpTgu0nW+B7PHqKlcyk5P cw3E5GOsXMJ/F7nKjxb2s1jkl7SqOE1ys2iVc0I8jsw6VzrFh4NTDOJ8Lf+n2n1PNTTu Mhne+AiHIPuxH2u47Khg63lKTqt3YnKh/68fyBAPvhBFhbk5Kn79mydnKIfxfYrj2oAg YJVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BASvgnxq; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a50d585000000b0045bcf2bdcf2si22949929edi.464.2022.10.22.08.14.04; Sat, 22 Oct 2022 08:14:29 -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=@kernel.org header.s=k20201202 header.b=BASvgnxq; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229785AbiJVPLW (ORCPT + 99 others); Sat, 22 Oct 2022 11:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiJVPLT (ORCPT ); Sat, 22 Oct 2022 11:11:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98CBC97D75; Sat, 22 Oct 2022 08:11:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 25D6760522; Sat, 22 Oct 2022 15:11:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0836C433C1; Sat, 22 Oct 2022 15:11:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666451476; bh=9xs8QE2qnzLKaj6lFMdhXBuAnxRzdgVkiIl6nYkhVoY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BASvgnxqVkhcJpCBtFhQ8f9Atg01Qbo+l4N+OGZFfGufrEY1QeHpzqiuZANDzG/8q QwZCPXUnmhJg8s7XHnwY+jStcT/CjdXrdt4+30Q+ovU244Eben1AeImVzcWt0v/brk pu74j6iUxLARD4TsVohRwTwkwwXns7WB2MwbrnBs2Dq68vzCx2QKqTWF5TxfgwFZEv bBfJX04VU0wpArFqL08aU7Tz1spp4MteosMXgOgwnEJRRSC92iRGjM59IlC79MEFZK FOS5jy33Sv+VeQkzuLRjo0tZAccg0vfZy1sQCtFdWa5QRIz1GnoSqx3R++tkeL6ppJ hqmqZ8JHtEBIw== Date: Sat, 22 Oct 2022 11:11:12 -0400 From: William Breathitt Gray To: William Breathitt Gray Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Kamel Bouhara Subject: Re: [PATCH v2] counter: microchip-tcb-capture: Handle Signal1 read and Synapse Message-ID: References: <20221018121014.7368-1-william.gray@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="p1S8upHQyjbUoLz2" Content-Disposition: inline In-Reply-To: <20221018121014.7368-1-william.gray@linaro.org> X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --p1S8upHQyjbUoLz2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 18, 2022 at 08:10:14AM -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. >=20 > Fixes: 106b104137fd ("counter: Add microchip TCB capture counter") > Cc: stable@vger.kernel.org > Cc: Kamel Bouhara > Signed-off-by: William Breathitt Gray > --- > Changes in v2: > - Simplified action_read() changes to just handle qdec_mode and > non-TIOA Signals before continuing with existing code Queued for counter-fixes. William Breathitt Gray --p1S8upHQyjbUoLz2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCY1QIEAAKCRC1SFbKvhIj K++tAQDXFZWn/HfRjhWoQtjL9COX6tTdBW+GBnHuNY1F5OZJuwD+O4BgyQcytFjO vc2bRSUznJOKQRr/oG84q+qQSQO/cQA= =6sLC -----END PGP SIGNATURE----- --p1S8upHQyjbUoLz2--