From patchwork Tue Oct 3 16:20:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Wolsieffer X-Patchwork-Id: 147998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2200122vqb; Tue, 3 Oct 2023 09:21:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvfjXpgY009DwvRY244+EFgvdzrRBYz2htocP7qaqjTZN8OAZC87Cvp3ISKzYHy+TuHHEq X-Received: by 2002:a05:6a20:3ca6:b0:159:e04f:e184 with SMTP id b38-20020a056a203ca600b00159e04fe184mr5451198pzj.7.1696350087286; Tue, 03 Oct 2023 09:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696350087; cv=none; d=google.com; s=arc-20160816; b=W/xis6qzktP7wtP9Cu5ZZ5XY517bQCSyx2uOwUodFuoZqHswhUArZh/4VDrI7piqN/ 4gBtgAWFEh9zQMs/ZHMtL/LZYDSO9i8WWGlPIAiMUA5APEUnfSrssR+5ltMbRYdvSl2d mEI19gMywT38Lr7tAch/yJdQ32/tDyLnDEizbXexixw2Eo0ftH3yl98kZZM2phMcXjxB Gpcr1oyb6GGEyH1J4LkQIDjNnQ2jYM31B0vv/5JVFSoEjpCJtqrNqoVzoO9kWzTSwk6S FyVUSTUwc8oZvY9lZgulNCQx7k1num1fmqS9+x11E+WBl3xcouKCAH6xSmehXfk8QonT yIcg== 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=74pfqmyEpWzC0JVzEWtyP+utP1T9AK68aLigFiWOG7k=; fh=vZe15LxKFsdMANvXbkNfV4DDJFkhvAkalNd0APUWY18=; b=IYw0d7VjWdsYvcNzOjGVGIRuu+5borh3M3T9SbpdddK+J9QtGt9OIIzocnujU8P/r5 druc+lrvuwJsGkZFSJ+IDeVtwNFLGLZizfdl8AYj/6+1v6QLuJswKWkwW6X9akBcLX3P 6ML7b15dI6Dky0uh4KvBZ/zb2l1uFCaS+savHm58cXl+4ChO+WJQ9k3xayFUsebzz33R 3MZdAlloyCNSJ8hkBITVp3dQJqWNvmPAsABtfRGxJhkjNEY8qO5e8ZcLTKK/DzTRKnGv uYl8BjEYnfS1yBoMjabfdW/jJTKxORS79gh50hnEDD9XAqVsou3wo081nvuaISONpZ+1 2Z+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=SeGWlQDH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id g2-20020a636b02000000b005859c221c76si1766028pgc.419.2023.10.03.09.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 09:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@hefring-com.20230601.gappssmtp.com header.s=20230601 header.b=SeGWlQDH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 449C380239C6; Tue, 3 Oct 2023 09:21:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240348AbjJCQUj (ORCPT + 17 others); Tue, 3 Oct 2023 12:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230486AbjJCQUi (ORCPT ); Tue, 3 Oct 2023 12:20:38 -0400 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D4A9E for ; Tue, 3 Oct 2023 09:20:35 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-77574c2cffdso88032885a.0 for ; Tue, 03 Oct 2023 09:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hefring-com.20230601.gappssmtp.com; s=20230601; t=1696350034; x=1696954834; 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=74pfqmyEpWzC0JVzEWtyP+utP1T9AK68aLigFiWOG7k=; b=SeGWlQDHFSe0SAyTgSkbd9l1j4MbOw6umhkgwSE7gfst9dgZUvulkkW1dckcfwH5WL 707YwLZrVl36yeIm3Vq1+MC4tceHY1nqXMUnRUp+tkbNqlQcxGaIgpfk9XvBDXti9hCu WcgFumdwruYx8Rx0+3nOX9OcW8neCZTubtpyzgVkM1x5iTFsn/ixb3CgSCcQqGZ2b0fs es+lohLqFLzMarUICvZ1HEqSiL8wb7EVHARQ6GKuFSaU9XbkwDfcZjZlhn5mtBgRaJ72 nP8d+H7DQbvVrpZu2p8RanlquuZ9gPcckE0Fg2zQDWEIIiIwrqmFUlyvQxshUc7ANhzR mz0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696350034; x=1696954834; 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=74pfqmyEpWzC0JVzEWtyP+utP1T9AK68aLigFiWOG7k=; b=PaKaxcAiqtA/66kwaaworfmBAVpTyTUgKJ5VUcXJtNduS/G8CRT9oXoYphOihueXb0 wS8++JTpph8pqCPen3xxxO7OMVqGq3C3GuDxuUb4mfaTDC9Xumwbl8JFWiszi1S9dK+K D+Tzwi227PZzhvq09LvH7KYUOMsXEMWeohWUgHVVpL+J1lbn9vS+DPYWZQB/FLNOEou7 xHhn83okJpbSOq/wYSWxFbuz8fPQYoDPQus2qEASWSWuvaen/OnU4cHSdiYrelGfH2Rk zEiG4hSzmSmGEZb0QgKGtNZx3EGSVYx/XmqfBps9mNaR9LBSfeZ49wyBHm5NcidI9oKB wjUg== X-Gm-Message-State: AOJu0Yzmo0RYEPv4C+j7Neq5l0AbzYMPsLe6kx/0dBu66bvvSSZR73Y8 mQRm7yPmq5omkS9obV/vizsWFg== X-Received: by 2002:a05:620a:4553:b0:76e:f73d:65ae with SMTP id u19-20020a05620a455300b0076ef73d65aemr3535399qkp.6.1696350034567; Tue, 03 Oct 2023 09:20:34 -0700 (PDT) Received: from localhost.localdomain ([50.212.55.89]) by smtp.gmail.com with ESMTPSA id o8-20020a05620a110800b007756c8ce8f5sm574520qkk.59.2023.10.03.09.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 09:20:33 -0700 (PDT) From: Ben Wolsieffer To: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Marc Zyngier , Maxime Coquelin , Alexandre Torgue , Ben Wolsieffer Subject: [PATCH] irqchip/stm32-exti: add missing DT IRQ flag translation Date: Tue, 3 Oct 2023 12:20:03 -0400 Message-ID: <20231003162003.1649967-1-ben.wolsieffer@hefring.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Tue, 03 Oct 2023 09:21:00 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778751989452726062 X-GMAIL-MSGID: 1778751989452726062 The STM32F4/7 EXTI driver was missing the xlate callback, so IRQ trigger flags specified in the device tree were being ignored. This was preventing the RTC alarm interrupt from working, because it must be set to trigger on the rising edge to function correctly. Signed-off-by: Ben Wolsieffer --- drivers/irqchip/irq-stm32-exti.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index b5fa76ce5046..cb4b195bc849 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -459,6 +459,7 @@ static const struct irq_domain_ops irq_exti_domain_ops = { .map = irq_map_generic_chip, .alloc = stm32_exti_alloc, .free = stm32_exti_free, + .xlate = irq_domain_xlate_twocell, }; static void stm32_irq_ack(struct irq_data *d)