lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <158551358456.28353.6069975380249902216.tip-bot2@tip-bot2>
Date:   Sun, 29 Mar 2020 20:26:24 -0000
From:   "tip-bot2 for Alexandre Torgue" <tip-bot2@...utronix.de>
To:     linux-tip-commits@...r.kernel.org
Cc:     Alexandre Torgue <alexandre.torgue@...com>,
        Marc Zyngier <maz@...nel.org>, Marek Vasut <marex@...x.de>,
        x86 <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: [tip: irq/core] irqchip/stm32: Add irq retrigger support

The following commit has been merged into the irq/core branch of tip:

Commit-ID:     25591d4c6459ce416a319832ce806be7b86183dc
Gitweb:        https://git.kernel.org/tip/25591d4c6459ce416a319832ce806be7b86183dc
Author:        Alexandre Torgue <alexandre.torgue@...com>
AuthorDate:    Wed, 19 Feb 2020 15:32:28 +01:00
Committer:     Marc Zyngier <maz@...nel.org>
CommitterDate: Sun, 08 Mar 2020 14:25:45 

irqchip/stm32: Add irq retrigger support

This commit introduces retrigger support for stm32_ext_h chip.
It consists to rise the GIC interrupt mapped to an EXTI line.

Signed-off-by: Alexandre Torgue <alexandre.torgue@...com>
Signed-off-by: Marc Zyngier <maz@...nel.org>
Tested-by: Marek Vasut <marex@...x.de>
Link: https://lore.kernel.org/r/20200219143229.18084-2-alexandre.torgue@st.com
---
 drivers/irqchip/irq-stm32-exti.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index e00f2fa..faa8482 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -604,12 +604,24 @@ static void stm32_exti_h_syscore_deinit(void)
 	unregister_syscore_ops(&stm32_exti_h_syscore_ops);
 }
 
+static int stm32_exti_h_retrigger(struct irq_data *d)
+{
+	struct stm32_exti_chip_data *chip_data = irq_data_get_irq_chip_data(d);
+	const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank;
+	void __iomem *base = chip_data->host_data->base;
+	u32 mask = BIT(d->hwirq % IRQS_PER_BANK);
+
+	writel_relaxed(mask, base + stm32_bank->swier_ofst);
+
+	return 0;
+}
+
 static struct irq_chip stm32_exti_h_chip = {
 	.name			= "stm32-exti-h",
 	.irq_eoi		= stm32_exti_h_eoi,
 	.irq_mask		= stm32_exti_h_mask,
 	.irq_unmask		= stm32_exti_h_unmask,
-	.irq_retrigger		= irq_chip_retrigger_hierarchy,
+	.irq_retrigger		= stm32_exti_h_retrigger,
 	.irq_set_type		= stm32_exti_h_set_type,
 	.irq_set_wake		= stm32_exti_h_set_wake,
 	.flags			= IRQCHIP_MASK_ON_SUSPEND,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ