Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp396426rdb; Sat, 30 Sep 2023 08:34:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZgdK9f4NXKBcyvJ2wFWKJ8kG/UnBvHNmqsfdeXMHeHBWCNvI9cjB2YtaC5ammIFgO2Hbt X-Received: by 2002:a05:6e02:152e:b0:351:5acb:271 with SMTP id i14-20020a056e02152e00b003515acb0271mr8773857ilu.1.1696088040027; Sat, 30 Sep 2023 08:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696088039; cv=none; d=google.com; s=arc-20160816; b=mkqZ/HIiUOomIsQ6mI5qfceOvi6DmDIeH5dNp42SParvWM376xCO/3etlQbEGmzNsV UhTrdZOQqpmpSZ/9V3Fi96w8CuuzmfnKcbKAcWgVM4KCMBaypRoQlkRc4KsTJ9dJNHCa fdJ8eBssC5QPVU60F7wxcEHv2rgj2NSymBKnzINwe9bKu9ykP+AowvmXO74HjD+4eNvA bf+zCEMqVpELs6p78b2hIFlv8bI70o0VkJqVt2Q4IATPVU57x3ZWfqpi/GdOEmVJFK81 rz43t+MqjQuAMHMC/BF3rkuEV6gxYneCeaC6sByGy+LeyWwRXO9JUPMolziFhrCNtl+K 0G2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pCwlHKlPWex/k2jF0Dt37Vahm5D/9kHRL4tM4tlVslI=; fh=e9lXfbAZmLMG/YSSxlbXRgGopMc52ojan+iACBc5a/Y=; b=A+yCx55CnHA7B0fPzVcCU9tGb69LUJPExLMBQS5gu7NMvCMWF5h4xKBdSZEEolZkQx EZpFnqIdgniGzRXuBvfxYSJmGotOM1qDi/RGQgMOJlVlfF36+KpibD6gZStIkd4LK6jy 08kvtCecQMMjZ8Uv9CdSWRI5i5UrdONkqScWV0YxtjVpSpjw3crZrwUQwPWqgjrxyIkt 8m2EInTu4nbqlvZciY5S7gtD3UuXChg16ME7JzGVF+m95wKZFiwQ0Kt84mVs73ymP8ll Qez4/V+uAEHFiFYI8DgZKf5AYacHTuqGznjxdJEzkBnDf+Yvdg12OMUe7G+pEm4utfoi rLtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DxCpeIC+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h187-20020a636cc4000000b00578af6c5c0csi22206818pgc.235.2023.09.30.08.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 08:33:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DxCpeIC+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C336D80236F8; Sat, 30 Sep 2023 08:33:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234422AbjI3Pdb (ORCPT + 99 others); Sat, 30 Sep 2023 11:33:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234257AbjI3Pd3 (ORCPT ); Sat, 30 Sep 2023 11:33:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3334311F; Sat, 30 Sep 2023 08:33:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37246C433C7; Sat, 30 Sep 2023 15:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696087999; bh=eSAPVmpMsnO0oz6bOiAtbQ81h57LmzjT+oOEAB6nLUQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DxCpeIC+XOiE1L256j03FUSFj0ZTLejjqGL8lwHBFZIWyggmPVzV3wXXj/99TXLzh 2wpsjVGC/VQYtnM/Vu/VLzUpdAfZJnOlQTr12lmpuqSChHGfW7N0Fg3/MgfnJ2CnEK NZkoZBTrNeXXHrUJsd42+XLRsMUYe8sYoiWkN3E77Zq1WLIoTYxslAocDrhOq5coai /Fn8tv6DLeoyhXiqJQp6uv5ggn81wh3OgLqgmNtyxJXpCLIJhJ9bzzrOXOYnAveoyp qM8ja44USZeWqXyLboesglUgFtmBKxfYrsj/goUeGhlOdjLsSm/PR66Hc31QkVMcj0 wdPHd4ErQ3Z5w== Date: Sat, 30 Sep 2023 16:33:18 +0100 From: Jonathan Cameron To: David Lechner Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-staging@lists.linux.dev, David Lechner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , Axel Haslam , Philip Molloy , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 23/27] staging: iio: resolver: ad2s1210: convert DOS overrange threshold to event attr Message-ID: <20230930163318.7b9d6181@jic23-huawei> In-Reply-To: <20230929-ad2s1210-mainline-v3-23-fa4364281745@baylibre.com> References: <20230929-ad2s1210-mainline-v3-0-fa4364281745@baylibre.com> <20230929-ad2s1210-mainline-v3-23-fa4364281745@baylibre.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 30 Sep 2023 08:33:54 -0700 (PDT) On Fri, 29 Sep 2023 12:23:28 -0500 David Lechner wrote: > From: David Lechner > > From: David Lechner > > The AD2S1210 has a programmable threshold for the degradation of signal > (DOS) overrange fault. This fault is triggered when either the sine or > cosine input rises the threshold voltage. rises above the threshold voltage. > > This patch converts the custom device DOS overrange threshold attribute > to an event rising edge threshold attribute on the monitor signal > channel. > > The attribute now uses millivolts instead of the raw register value in > accordance with the IIO ABI. > > Emitting the event will be implemented in a later patch. > > Signed-off-by: David Lechner