Message ID | 20231204203357.2897008-1-ben.wolsieffer@hefring.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3025127vqy; Mon, 4 Dec 2023 12:38:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnfuhddS8YqQIvPvMQKnU1VjzLWEeF04NOSKEuEi2wnCgZKlL51p7qvz1XrxdxvkfizBjH X-Received: by 2002:a05:6a20:4290:b0:18b:34e5:ff71 with SMTP id o16-20020a056a20429000b0018b34e5ff71mr428152pzj.21.1701722312505; Mon, 04 Dec 2023 12:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701722312; cv=none; d=google.com; s=arc-20160816; b=Kj4eicnNv6YELZkHilivVeaqah4NkrYJKzxBwrsystNDV8GiSymF8Uu+3PmFXPLYst rflbGrFizW/ot0yQadSfHlCVi0RpbwZ9x8M3eQ8EYjkSlRhrYN6kW+DSJk5bW2s7PG2P M2/70YUi/23jIFShci+ezOeW9R77zk+vBU37PQjHnSsqBg9t0DpKWzOMoEc/K2M5yzPm T1Cwt5LWUxaIBuSYmI1golyRSw+FsWTdn5A5yDLS3q6oXv4SIiYBWawpusD+PrPLPMvR 9x42KeQshSKdohyc1hJ60+kzYIC3DQ86fZfcM8QrNjQlalNok+SlK5MS3CPkbmEo6VMR W3gg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DyOt6WNJoyGPyyAGB/bMPPXRQGKI15oaDucC2U+fr/M=; fh=6R95xM684t/RtLGS1mkzgWVhZ9Mrm3iDfH0StUmJDQc=; b=StjXz+4ZDpAZYEGRcw5OadlTSRGAjX9+dQippjX66yS7Eo+aitmbLueTZYWokpg6b2 8d1OF21dbHtHpH27B/aRYo4dI2NZycRpZydCS3FkQ78H8/9mZqCf9XFAPN0E+iy/wHHV CHpQZU6Iw/50udEFM2UG1StvKL6xUXE6ZZCZzSqpKURB1Plu3TZStk2uLsGHU+kJ+04A 7Pn/gr7OXK+HotJL0ooNrg1X+8+23K3dtZZIe86sWsPOamGIzipbRIuN+vohB/QC93s8 JDIZRHfQfgtDLYEcH4tmaCPFLHy8uqSiThQsn+W9fcQX/aN8IqFro9kSWs+4Dz3/8wvy CPMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=KHFAu1tq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f23-20020a63f117000000b0059779ae5899si8411638pgi.836.2023.12.04.12.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:38:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=KHFAu1tq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A5B0C809CC88; Mon, 4 Dec 2023 12:38:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235604AbjLDUht (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Mon, 4 Dec 2023 15:37:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346046AbjLDUhV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 4 Dec 2023 15:37:21 -0500 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E502384F for <linux-kernel@vger.kernel.org>; Mon, 4 Dec 2023 12:35:37 -0800 (PST) Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-423c28db22eso49750971cf.1 for <linux-kernel@vger.kernel.org>; Mon, 04 Dec 2023 12:35:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hefring-com.20230601.gappssmtp.com; s=20230601; t=1701722135; x=1702326935; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DyOt6WNJoyGPyyAGB/bMPPXRQGKI15oaDucC2U+fr/M=; b=KHFAu1tqEjUF818xvyy2DPCcHiLL60PxQAUJW6qaDAdQ2Q7R96QliiQrEajn5P0MOB 8mhH03+0zJt0HNlN/FDzTGxHPM2wD4cBVLqyiicYpbM9vqEHpWUSMuGmwzcLdIi6E38p hTsh1rzrMSwXqNKLbZZaE6alC4yQPtNNE7GaXeC6ksZucFIZCzc/tvj+N1GhZff7cU2j fcSFU7VHFxVKCye85uQ9AkicYxi2APKZ/QB0Q3LdQ75qzJobrHo4HbNvapWYh5JHmnqp 8zdY0HPOUDZwsYzzdMqele1oy9x5nDawgBlwhaxjEc6WtHP+hRyi5aO+rOU43YMdIOg3 ZPvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701722135; x=1702326935; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DyOt6WNJoyGPyyAGB/bMPPXRQGKI15oaDucC2U+fr/M=; b=eOlhdJGDmzbDjmdUeyU8GSNM0z9sCtGesvGFr+r5lZqeQOUOPFzajVYsp1YqylyLG8 ZsaFwKqdGIeKwJ+hLhYJT15kxLa0RwUJ3gUERA4U/4LKgemTMj+ArEWdCruTKTz68+u9 iwJKQpGHMN3roOq61F6N/xBCWM3x4oYpwBFgs+E1w0gUhXnwTllAtlnsZdVOFfIikuGS d+fXX9yIOFzUTmwaLuubpTGFr/ACFyeHiMutlg/NEN2lQwX88dwP3XcT2mzp59mBaFh1 TIuVOQiEDE5cfDRceQaWSsRJUdVMuMcfJiWSt0bWZxj8qc0OXk6MolDTggumvJrtZC6y VxDA== X-Gm-Message-State: AOJu0YzX40GN5PkFfWuOYqBflE0o+YbjRNRwAOEyWo35s7KDgzhX+zlX T6Nar9T+67abHCp7gPBZESsG8pUFgOJjCamIOHM= X-Received: by 2002:a05:6214:519d:b0:67a:5815:9996 with SMTP id kl29-20020a056214519d00b0067a58159996mr217380qvb.6.1701722135213; Mon, 04 Dec 2023 12:35:35 -0800 (PST) Received: from localhost.localdomain ([50.212.55.89]) by smtp.gmail.com with ESMTPSA id jo23-20020a056214501700b0067ac930d17asm1123469qvb.141.2023.12.04.12.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:35:34 -0800 (PST) From: Ben Wolsieffer <ben.wolsieffer@hefring.com> To: linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Cc: Thomas Gleixner <tglx@linutronix.de>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Linus Walleij <linus.walleij@linaro.org>, Ben Wolsieffer <ben.wolsieffer@hefring.com> Subject: [PATCH 0/2] stm32: fix GPIO level interrupts Date: Mon, 4 Dec 2023 15:33:55 -0500 Message-ID: <20231204203357.2897008-1-ben.wolsieffer@hefring.com> X-Mailer: git-send-email 2.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 12:38:25 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784385175608101028 X-GMAIL-MSGID: 1784385175608101028 |
Series |
stm32: fix GPIO level interrupts
|
|
Message
Ben Wolsieffer
Dec. 4, 2023, 8:33 p.m. UTC
GPIO level interrupts on the STM32 were behaving like edge interrupts. The STM32 lacks hardware support for GPIO level interrupts, therefore the pinctrl driver contains code to emulate them using edge interrupts, but this was not working. First, the STM32 EXTI interrupt controller driver lacked support for retriggering interrupts, and second, the wrong IRQ handler was being used because the parent interrupt was an edge interrupt. Ben Wolsieffer (2): irqchip/stm32-exti: support retriggering on STM32 MCUs pinctrl: stm32: fix GPIO level interrupts drivers/irqchip/irq-stm32-exti.c | 13 +++++++++++++ drivers/pinctrl/stm32/pinctrl-stm32.c | 3 +++ 2 files changed, 16 insertions(+)