Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2580309rwl; Mon, 27 Mar 2023 02:09:14 -0700 (PDT) X-Google-Smtp-Source: AKy350ablBKUj9WfZJuJbCL5uYkKvYRaqM6yh3IUQS5sSk3Ce7ZZdJVMhCSnU89+ltId8jTyTGkl X-Received: by 2002:a17:906:23e1:b0:935:299d:b6a4 with SMTP id j1-20020a17090623e100b00935299db6a4mr12468791ejg.33.1679908154660; Mon, 27 Mar 2023 02:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679908154; cv=none; d=google.com; s=arc-20160816; b=d0qAvhCy1QdlhXSsI1w1Wl0trD4owMYLCrRYTa4moFvpSNzopOQLf29HMaEceZRLK2 ja6ztQSEaG3oJHr+PJuCOfmwW88rwuoczL13co7ZIvcEPew72IwY6QJDPsNOwmFZpOH/ aDjjQ+gwbkhSmcr311722n7wQ8x6T0u9BouV8vXrKunNSmQk1ZytoeFYo52p2keu4Jhf 0/sBwmw78Cb1RT+JodPp4LEsOEW0mnaM9qGrcVozWuVSPwv3LWFLy1XOlzLY2va4PQnR CApAentHH6Nt4w9V4mbgotMGQ1CCBkJC0lq7ZJRkjf+z1UdhrhouNcRg8Lpi4+9jas4z BZug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EqsTkBs6N6moVAGndgySpKN2a5Zh6cCjYlIjBQjIbQk=; b=JGU1cHpvpjHK/PLnkX0B4gsOQom6z87luMl/gSW1+lCCDD2AyiyIWCVOJ6ebHEQ3iG pz6cLTNReD7v56Kbp7Fe/5/wmWj6E8/kcesUb383mznuNwy8MTs4Hp3GyGmVLq/XIFJU wnbydcJayx7yKuECcyGIPpDi1G+TFLTLRZF0+bKuiOvAJyj+7+Qlm+hy8SZa9nZAGYAR 0W8i5fWtfpcbNNsFhzWg8KzGC2dMNn49LH7X617TxdWXocYRdN+7/9MNpeWKjUIADJya 0pm1dSvXpqA/tRx9+UJDV35CMAvS8Vl2OVIAiYOrHPTkuC4sej7/QKtqrvScFEc7iFqs /44Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mechatrax-com.20210112.gappssmtp.com header.s=20210112 header.b=OAspQ+mN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d23-20020a170906c21700b009331d7ae4e8si22942265ejz.77.2023.03.27.02.08.50; Mon, 27 Mar 2023 02:09:14 -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=@mechatrax-com.20210112.gappssmtp.com header.s=20210112 header.b=OAspQ+mN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232881AbjC0JET (ORCPT + 99 others); Mon, 27 Mar 2023 05:04:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233165AbjC0JDg (ORCPT ); Mon, 27 Mar 2023 05:03:36 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEBA93C34 for ; Mon, 27 Mar 2023 02:01:51 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso8037748pjb.2 for ; Mon, 27 Mar 2023 02:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mechatrax-com.20210112.gappssmtp.com; s=20210112; t=1679907711; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EqsTkBs6N6moVAGndgySpKN2a5Zh6cCjYlIjBQjIbQk=; b=OAspQ+mNtEjnF5DPf+PUklx9ud9YCxl5EO9S3cilH85NbyMHB2szIRjaHvleaGgTiL BxFr0jHL0xvnFXZSr9nMK7wjvlTyCa1TEs01Bt+fHyk+YXzYWTCD+QRnaPLwV9hRuy2j XoURpLFbhnVuC9/u5QOHyJdz/IjunP/+wBFN55W6ds76BKzf87FK1WJFMeJ7W4wsvvKh NGRVDHwf7IJvTArPUppleuFN+nJMZDPwcoyTkXiita73AkMlHzEEGY+P1b+Jx2YeGDKt zmWhuwjBAPp2JJBEjloySXmnSKPIaBmIY4SzFRiViwp1dTGEu4255OGZyfZkAKnO54jl zwLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679907711; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EqsTkBs6N6moVAGndgySpKN2a5Zh6cCjYlIjBQjIbQk=; b=vplG/qebM+vdagAVanAxLA29ue+y8Ty27qheUpkAN/DkCz+EaH6KRraWb5mo3TmaGP qdBHgqxnRZfyXUePQIxXILm4ExDGMTgROK9zpHGobi0ksACCWmeu19wGf5whAzj3Knqb Fqz11WzIJER5fOyxvETyrQQJDaQLWXc41vA/vPMGctmMmP9tCeBez2f0FLcKmpQUJV8q Y2Emn64JR3git56HubMKoZCcSivx1/lJt/F3H1neIieTtbh6XmnoGDK7Y8X7BZsUiAk0 AEPy6xk6n6Swn3bKjqzyCz+ID88MoHs1NXXSk9wbaDkV6xkhjzWzwnvEEaJCBzFRE1mZ GmhQ== X-Gm-Message-State: AAQBX9du+tFyhxYUVAMU1u9E0M4/UgmHAcGGGezNzbS5znBCpV4A5y5y WmnPlPqPMBjZm+q9ct6QVbMRBefI856FYBVbHtOVpg== X-Received: by 2002:a17:902:8f8c:b0:1a2:1ec5:e11f with SMTP id z12-20020a1709028f8c00b001a21ec5e11fmr3305343plo.6.1679907711300; Mon, 27 Mar 2023 02:01:51 -0700 (PDT) MIME-Version: 1.0 References: <20230306044737.862-1-honda@mechatrax.com> <6e1fe1015235ae7d7eb9ef2526fd64b6d6d628d7.camel@gmail.com> In-Reply-To: From: Masahiro Honda Date: Mon, 27 Mar 2023 18:01:14 +0900 Message-ID: Subject: Re: [PATCH] Fix IRQ issue by setting IRQ_DISABLE_UNLAZY flag To: =?UTF-8?B?TnVubyBTw6E=?= Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Nuno > On Mon, Mar 6, 2023 at 10:30=E2=80=AFPM Nuno S=C3=A1 wrote: > > Another thing that came to my mind is if the data is totally > > garbage/wrong or is it just some outstanding sample? I'm sorry for not answering your question. The data is the same as the previous conversion even if the input voltage is changed. At this time, a logic analyzer shows that the read operation is performed immediately after the conversion is performed. The read operation returns the previous conversion result because it is performed before the completion of the conversion. > > Some research on this also seems to point that we should (need?) call > > irq_clear_status_flags(irq, IRQ_DISABLE_UNLAZY) when freeing the IRQ. I have understood that I need to call irq_clear_status_flags. However, I cannot find a code to free the IRQ in ad_sigma_delta.c and other Sigma-Delta ADC driver source files. So, I would like to implement only irq_set_status_flags.