Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9385612rwr; Thu, 11 May 2023 14:15:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6i5erPUODy9OjjuAMZgzK7BhtmucSSL0MfzaCFxVKlYdE23iyN+4qn+u1ZV8Z65FHyAdqP X-Received: by 2002:a05:6a20:7345:b0:da:d4eb:9e07 with SMTP id v5-20020a056a20734500b000dad4eb9e07mr26612412pzc.30.1683839750523; Thu, 11 May 2023 14:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683839750; cv=none; d=google.com; s=arc-20160816; b=mm9ksCp+iU2f+sl8aK7ElHe9khwhX/NtIQLkqbPLkrsWV5MJOkahNZNoZAO/OZgHZN wIpuZzTDBbhX0k1t8NYabsOvZ+JzcFhOunYFth+yDkJtRpR7Sp7apEUDd8DJOuUq87hm XInEg27tqJkV1ONXmq7+I3aN/1tXyQts2pfNPMm1lfAYYzFVMJuZJSshz11GdyzvPHxS KW44F6VaZVGqyhWUtsEUbabpVSdtXDieS/6p0T3rm2GplFqdxD7n5JHFL1UGwna3miCv 8+LSZBsbOf6FdtF9yBzEyZZi1F6Xqe2mh630+8eP9+Uh5gS6r8vp9PS2sZPC6H9wZdHm olTw== 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=2PS2/c9QvL/3w6lXNaswW1QRNDamQ1dzdDujUD8jAhA=; b=Gn6AAQtN1N6X8Hblx8pw6xAYSovVyIQheCNHb7PZZey2gurBiyjT9448rrDELWPHfV sYVv+z+Ntt12zdYF+bbMRAnqyo760QBvGSMiZCAcJvNcPpSEhDAba6NDL/2WNm4muOXA RBzOOqoPZ757rajExPEgi/cBQJNNJYJKfEJBEJhiWbCLMHSvMb+XgFxF2nr97FDb7Y2c QQaJBqi3EmWxQs034xqu9NfuxNJBXOG1f9OdV+oZs3Z5kTgFb52itikGRWzKWO1XDiAa EHOGYNrUYtqMxiyNM4pRkrlXxGlluWGSxKlXGPxjzZdZ3g1dya67T/ac1p7fP+6ofOsQ Dpxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t5jjnWWl; 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 v22-20020a636116000000b0053060907221si4567625pgb.569.2023.05.11.14.15.37; Thu, 11 May 2023 14:15:50 -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=t5jjnWWl; 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 S238053AbjEKUtH (ORCPT + 99 others); Thu, 11 May 2023 16:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239232AbjEKUtG (ORCPT ); Thu, 11 May 2023 16:49:06 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89EC619B1 for ; Thu, 11 May 2023 13:49:05 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-b9a6eec8611so43496490276.0 for ; Thu, 11 May 2023 13:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683838145; x=1686430145; 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=2PS2/c9QvL/3w6lXNaswW1QRNDamQ1dzdDujUD8jAhA=; b=t5jjnWWlPBzm18PiMq9jTeykQKeXg72a0ZPYkd1CvETgVallEcxQl20dL/arMItNih VDwZTHGN/sArnIcr2Vu2jX/4+9V5T1VPRiWO634UyQB7AGkgCjzArNtlU4FzKB4V2/X5 x+5S/QVNcfbm6s528mv+LMJhJVKV+RzuQ5NvqFfKKJLsaNPXG27xBOeFGKWu4tr21p0S 196UndwRwbUhGy/W3n4W0bN4oKoDZwSJbnoLnyWZfmB8mvurEose/6ZNuyGA+q1cyAu0 lUGjSFn/1OSKbBv5DPIVW9p9I1//SE49bZILQzdCUBLR/58gz+mVzgjFauGY46nvt8KM OZvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683838145; x=1686430145; 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=2PS2/c9QvL/3w6lXNaswW1QRNDamQ1dzdDujUD8jAhA=; b=OQK9xWyYOgjPr+GCaMwUh+fPUamVtIHv1HmFDKb+6iD6ocxILSb5aqGCdpIim2YJBN jy+QJmREBrSFOXgVVl1deiaBss5QC8wP0sCWxkUt8Hll4NGAPoHCr99Eos8AGP/3u7gQ rV7V0AIroVD4JPrF68zFZkzz6/cmzFR8P6hIMPz6hKR+uOgAkFXp40dowiR1FknsrKIK i56NchhXZNMofNW7HhSGqsif4i2iVpWO7NEefmAoWp8pH8Ew/rw3cwvgeUiW+Liuu8mu SlSGXyqv/ZwWhNCLYXxkKwOHx6KLa6Qo7AsxrpqMgJRp1SIimd136L6HreF/lMY/0xCe exLQ== X-Gm-Message-State: AC+VfDxAq+NQicdeJsuYoiAaPi7KPZDILKeNMELtTdMcaSgd1pStVQkg XSVLpMSdspzamylQziyGzkir4suznrkS+uJrCH4T3w== X-Received: by 2002:a25:d8cd:0:b0:b94:bbf2:19a3 with SMTP id p196-20020a25d8cd000000b00b94bbf219a3mr22194052ybg.18.1683838144767; Thu, 11 May 2023 13:49:04 -0700 (PDT) MIME-Version: 1.0 References: <20230510001151.3946931-1-chris.packham@alliedtelesis.co.nz> <760ae58f-cb0b-dfe6-9e24-664310651e18@alliedtelesis.co.nz> In-Reply-To: From: Linus Walleij Date: Thu, 11 May 2023 22:48:52 +0200 Message-ID: Subject: Re: [PATCH] gpiolib: Don't implicitly disable irq when masking To: Chris Packham Cc: "andy.shevchenko@gmail.com" , "brgl@bgdev.pl" , Ben Brown , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Marc Zyngier , Hans Verkuil Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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,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, May 11, 2023 at 10:36=E2=80=AFPM Chris Packham wrote: > I spent yesterday trying to demonstrate the > problem on a newer kernel. Some teething issues aside I can trigger the > warning if I have a gpio-button using one of the pca9555 pins as an > interrupt and then I export some of the other pins via sysfs. > > Interestingly the warning isn't triggered if I use a gpio-hog instead of > exporting the pins. What happens if you use the gpio character device instead of sysfs? Like for example with the tools in tools/gpio or using libgpiod example tools? > I haven't figured out why that is but I'm assuming > it's something to do with the hogged pins being excluded from the irq > domain before it is registered. If you write something to the "edge" file I can easily see things going sidewise. The sysfs is really not a nice tool, which is why it is deprecated. Yours, Linus Walleij