Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1961364rwr; Fri, 21 Apr 2023 02:04:26 -0700 (PDT) X-Google-Smtp-Source: AKy350aS2CMz+I6WJjY3G36wCwyi74Gbpvrk0R24O/8uyOrBoccna6oa80Q7bMwLRYLOlhst4gVU X-Received: by 2002:a05:6a20:1449:b0:d6:91f5:2b10 with SMTP id a9-20020a056a20144900b000d691f52b10mr5444535pzi.58.1682067866544; Fri, 21 Apr 2023 02:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682067866; cv=none; d=google.com; s=arc-20160816; b=BYF8Adm5q260nTk3kPIu+Tus2KZf+0l1Ss9WifUDQshFLKF5ksk9ZnWTufmLrtGbv8 Je+QOX/o1+Tq7xNEzTT0KC4lL7YS5OUvEt/LEWuH6nztbpA7vJbnLi8EmXZ0AqlPx+I7 3oJS+3TLeDAFwFZJfv+8dcKNobzn6dHr0CRMWgCQ/vdXGL67P1Sej0I9W/8Cgq+n2yQb XxxdSmdFCpXB5g1fvWW0T3s4Ao9+ev7HwOwVXYiH3xXJxFDgcDDLAZwkbOBe8pZheuUk mInALbwSMOoJ01SajM74kLAJ5aP+4z/yPMbFF7IoZZEL6/4SPbwzcvBgtDUbYeFydxvz 5XTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=qXhEILP7MIbeRegT9QhmF9Jbqb5hykNTAv4rFurPXOo=; b=vtVD/OprsT84COBm2h81ydtfCtOmww0kGEksASTxkWviI6udYN+enNuRxr62pNAIms 9ZTb6I8X81vZ9xyZsEc99M37++UgGO0Dyw4sIA8UQ9VSbv6YbY7jrek2x9klPfQpGT4k jTm9yK7vqPnXwjA5QBhGsxMLCKllQOKDxdQRj23s+sF+UCLjNrIT9gfBB5QtNGKyvFVe eCOXVEMWAtoE2P2ti8H4s4JmSUbo9I3hXFZrLrfDB7uLpwZnD90qP4LUlQiYHwMPf/mC RmhC650PrjPvTfjOpCMG1rOzNozNbwUoBWFpW72wbmiyesOWDZZO6uDlHukwSuzGVNoh f33A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Fp8vNPjF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mu1-20020a17090b388100b002467d05c498si4376132pjb.69.2023.04.21.02.04.07; Fri, 21 Apr 2023 02:04:26 -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=@gmail.com header.s=20221208 header.b=Fp8vNPjF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231830AbjDUI5c (ORCPT + 99 others); Fri, 21 Apr 2023 04:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231705AbjDUI4z (ORCPT ); Fri, 21 Apr 2023 04:56:55 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EF18A5FF; Fri, 21 Apr 2023 01:56:51 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-5ef54bcded4so8334576d6.1; Fri, 21 Apr 2023 01:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682067410; x=1684659410; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=qXhEILP7MIbeRegT9QhmF9Jbqb5hykNTAv4rFurPXOo=; b=Fp8vNPjFC8gwk56JdwhvgixReiu7sHBr42H+rxicYairhgzRr3XxufHNn7LTllmLrt RKK06lWxyEnQ+t4dyN/w7hmLHXOlTu9Gjtv756fVWta6JCA/ZlyXTHUmgAAYqHyGgKmv 3zHMcbPt3oMdV3MBEPQF/QV5bKiFdeFpTDDWMby3I/5s2QifWhDAO6daaHS8I6t1RAOm FuVWAMsnNpGCk56hFN2RSJLAKZqqzA1Qv89wKOWIamIs3xeW5IUjSObzD4jGAoQKLOGT 0nvnJHCNvQUlYxrSRc8GGC5EnKJClwi6np86K7bapdH+2eeVOupkNA5vkORorIqojpxb 5v0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682067410; x=1684659410; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qXhEILP7MIbeRegT9QhmF9Jbqb5hykNTAv4rFurPXOo=; b=DXIlYhzY3/42ToofeCf1Qons0P9cLsO8njvlbiJN6ZkgEkFSgavvDbJ0Arb9QIJbqo C/EVgXzlVZi1XuluaBDm68jIBq2MHFfcuTijTF/4wIpGRRg5nBKA7VlFkEWWwqCN8wIT vYz3dz36CIJ76ii5A+peOopFR0R7OUP87ceLvM4P+VTROTFESM7MgbeDHNqLHj4TrqEt wAubQnHd7TNJbDSGHA7JT7V3Csuguun1UW/u3E7avnusPq6lME+5ptf4ANmGy5XDZV1F MEa7lHMfW/n+aMmNJXWoiHFL0eXu9vhCk3unqP1lKljINcryqYxqj/Ymb2LJMQ5IP8ny WiMQ== X-Gm-Message-State: AAQBX9doalvnHDxWs2+qiJxwUk9PBWRU4u+I4yivLY5e74b2ObiG+gYH qzH3aEujibTZR1Bdd8pZvp0rcKeVy+sHk6qU X-Received: by 2002:a05:6214:124c:b0:5cd:1adc:30e2 with SMTP id r12-20020a056214124c00b005cd1adc30e2mr7170251qvv.11.1682067410196; Fri, 21 Apr 2023 01:56:50 -0700 (PDT) Received: from ?IPv6:2003:f6:ef05:8700:853c:3ba5:d710:3c1d? (p200300f6ef058700853c3ba5d7103c1d.dip0.t-ipconnect.de. [2003:f6:ef05:8700:853c:3ba5:d710:3c1d]) by smtp.gmail.com with ESMTPSA id q15-20020a0cf5cf000000b00603551afd50sm481424qvm.39.2023.04.21.01.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 01:56:49 -0700 (PDT) Message-ID: Subject: Re: [PATCH v3] Fix IRQ issue by setting IRQ_DISABLE_UNLAZY flag From: Nuno =?ISO-8859-1?Q?S=E1?= To: Masahiro Honda , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 21 Apr 2023 10:58:57 +0200 In-Reply-To: <20230420102316.757-1-honda@mechatrax.com> References: <20230420102316.757-1-honda@mechatrax.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, 2023-04-20 at 19:23 +0900, Masahiro Honda wrote: > The Sigma-Delta ADCs supported by this driver can use SDO as an interrupt > line to indicate the completion of a conversion. However, some devices > cannot properly detect the completion of a conversion by an interrupt. > This is for the reason mentioned in the following commit. >=20 > commit e9849777d0e2 ("genirq: Add flag to force mask in > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 disable_irq[_nosync]= ()") >=20 > A read operation is performed by an extra interrupt before the completion > of a conversion. This patch fixes the issue by setting IRQ_DISABLE_UNLAZY > flag. >=20 > Signed-off-by: Masahiro Honda > --- LGTM: Reviewed-by: Nuno S=C3=A1