Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1541055rdb; Thu, 7 Dec 2023 01:59:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEp5KQorXwgX89JH+tMdswnlIStOg/JHd3IRPljpPOkpPPCoUfxLHZkGcSe2jJ1R3jnZ9LI X-Received: by 2002:a17:90b:4c10:b0:286:c54a:a1fd with SMTP id na16-20020a17090b4c1000b00286c54aa1fdmr2000555pjb.46.1701943161776; Thu, 07 Dec 2023 01:59:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701943161; cv=none; d=google.com; s=arc-20160816; b=OkSDVWOE/nKMQyhAKRyWCPWUaAAiQgWMpvLlw3fMlGMt4ScOpMbB2MvglyMKAxxSs2 QHnYSEaNM0HVXrmftspF32Uefmm//CstX9SHPsOY3WaVlorU4YKfPBna+2xo2QpVWxF3 XcoIJKwMac6+k9ZgRhqhDLQU6t5bAXoPFpL2gfXv5XYY7v0fiM4BScdVm/7xvzA47UbM uBkCg+UJiGD/RnsejEV6mvenhNg5KMMPPbxD7SLaOnKm8Je9DvpnOc1DI0yCfxV1Pp7o AfBLY4noDDE3pmQ88rh7PDwgvwxCLELAIDRnuZgf0Fm78JnxdOGuTDvHqCXhablS7t+8 KgXA== 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=+6K465pI4zAWlwCamlpDG3HILRkV9gPVUA692gl6Sek=; fh=8aKXbGdz4UhIvAmqqy78Qkt7MVC2Qm0YLGjmCAecuwg=; b=gRUWQCPO4wrLJ6C5f5i8YA36JiV2JusyRDRvaYLXOGLagt89hx2n5xlPOJKup8lYPs TUd0XoWrwKbFLkXUkdGobehU3aLWUFyxcrcjVmy8zoSVr8trwKU5oKimfBhCqJMad788 zBuETL+7QRajAAo6ktpixJV4dSrWl/EkF8GP4IdQS4Y6d/camh0xDwaCS+iG61IpNTQJ 0BjtXGBFe9AsD01xnrTKKDjWkKIQjwn4ew2HGx7kmcks2Xcud6Vh/YJE6BWJQBIqb/wi EiSBAD08PuERf636kjjXPTpLw7b78QEu4J3jnGtMBUy+8owDFNCJxOay5W0tsXmyjGtm YRRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O55XMeMl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bb12-20020a17090b008c00b002865781c521si845833pjb.95.2023.12.07.01.59.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:59:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O55XMeMl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C119D8029269; Thu, 7 Dec 2023 01:59:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232401AbjLGJ7J (ORCPT + 99 others); Thu, 7 Dec 2023 04:59:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232406AbjLGJ7I (ORCPT ); Thu, 7 Dec 2023 04:59:08 -0500 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4564F133 for ; Thu, 7 Dec 2023 01:59:14 -0800 (PST) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-db539ab8e02so878046276.0 for ; Thu, 07 Dec 2023 01:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701943153; x=1702547953; darn=vger.kernel.org; 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=+6K465pI4zAWlwCamlpDG3HILRkV9gPVUA692gl6Sek=; b=O55XMeMlHOwm+GbmwnwdJIf8Tb5gumCUwMQnspnn/K0AiiXvZ6jlXGOCT08XfFgORF aWKiDAufxdj75Jb0o4eyq83/3da7EuU7EPQDTlXOHrp5Q8DvmRfu7VNORk/r4pRZ8ajy eDSoajDaghkYNgKF2rGvI+PRjk5zSplohxDhAlbUSlAhfKNJKlxHoAZCEzogB7VQ7BSC SeLoGsrzqoftl62DFFH25HLRyAPQMjUSlkk8NrtUfYTPXt03E7ZuXIECiV9tpyru1a7o JvMFAEjrpPeSzex9bV3eWlFFJwF8+UJG0x8fqiVedGXAEnIMp9YJZhR7HQs+tiDcgt9J jxlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701943153; x=1702547953; 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=+6K465pI4zAWlwCamlpDG3HILRkV9gPVUA692gl6Sek=; b=RJODMBAhITGLHZd5gsfbH5ODTa7Vr0sKeWgYejtlb/o4pn4a56rqzBzNVUy4HX+z0q nTsUpqIxxh1LToWCfWAzL/+6EnNsnvaAb3H2pbQ4SHlC1E95fWDswBsqTwtpzfkSPZet 55xL+aFERvVd5BDO0BmjD/ZDScc2xX7i12YFYvNsyJE3tTWQgfvFkzq3USGkRqJGsELP K5LaN486tFxZIR/gDIXpa0igxeaz7UOUNwcgeLP+JGZMQDB+868/HN0KphOkxsI0cfyh aqKrkb0Pj0+g0/jbZDTBTmAXD2RABdybfiUFZ2wEgrrJnr9NNKwJySwSdwh/GJzJHBCS QZbg== X-Gm-Message-State: AOJu0Yza3hB6uXS1iNUpXpgCH9LVUcnRU+AF9nyIPDVMCw6Dk4lCYWgj dr0MmxIeVQNOIRu5rMn6+XxpRw8858rCIYx8Lfs8Aw== X-Received: by 2002:a25:b8b:0:b0:db7:dacf:ed91 with SMTP id 133-20020a250b8b000000b00db7dacfed91mr830253ybl.114.1701943153500; Thu, 07 Dec 2023 01:59:13 -0800 (PST) MIME-Version: 1.0 References: <20231204203357.2897008-1-ben.wolsieffer@hefring.com> <20231204203357.2897008-3-ben.wolsieffer@hefring.com> In-Reply-To: From: Linus Walleij Date: Thu, 7 Dec 2023 10:59:24 +0100 Message-ID: Subject: Re: [PATCH 2/2] pinctrl: stm32: fix GPIO level interrupts To: Ben Wolsieffer Cc: linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, Thomas Gleixner , Maxime Coquelin , Alexandre Torgue 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 01:59:19 -0800 (PST) On Thu, Dec 7, 2023 at 10:56=E2=80=AFAM Linus Walleij wrote: > On Mon, Dec 4, 2023 at 9:35=E2=80=AFPM Ben Wolsieffer > wrote: > > > The STM32 doesn't support GPIO level interrupts in hardware, so the > > driver tries to emulate them using edge interrupts, by retriggering the > > interrupt if necessary based on the pin state after the handler > > finishes. > > > > Currently, this functionality does not work because the irqchip uses > > handle_edge_irq(), which doesn't run the irq_eoi() or irq_unmask() > > callbacks after handling the interrupt. This patch fixes this by using > > handle_level_irq() for level interrupts, which causes irq_unmask() to b= e > > called to retrigger the interrupt. > > > > Signed-off-by: Ben Wolsieffer > > Reviewed-by: Linus Walleij > > Marc Z can apply all the patches to the irq tree once he's happy > with the solution. I see Marc stopped doing irq_chips, so tglx then! Yours, Linus Walleij