Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5154946ybp; Mon, 14 Oct 2019 16:33:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqytB1cIWQz8qjsgusYr9TO61d4+hgSdY5M/NYSaIywLgkw3eHb9IZt4TI+QHaj6rhUysyuQ X-Received: by 2002:aa7:d753:: with SMTP id a19mr31481756eds.80.1571095987056; Mon, 14 Oct 2019 16:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571095987; cv=none; d=google.com; s=arc-20160816; b=WiugCOp4U0NkuyoppB/uldbwGnvS38pTca6v8Qgeq5QNhQ2Dx2/DL1woMyRGMbB6Hm sWYvX4kKGu/Jf173tz0fcgMrTSQMnqiX3ImAVogSwkjk79KGpw939/wJVx3XCWQ6NqCg 0NAmZnRkvtVMPEGL5XuO6CWcC7YNcZwJUrfyXzVpiKvJDZuEolZ6I7VYgwHDz4NXT5Lf 6YyOR5aoVpvDoerVOw7vDHPo6oHcEpoam2jzjPuotcZDu5yQ4fGatxO0me7rSclIQrrw YtmGXZApPKNsMsn4CjroB3XWYLeqElqMkLkqxw1obmVW4fSL5o8Ma+jQ24viSrSJyNhu P2Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=n0ystXp66M/m3dVdYijSIkz6J31WEUCwbbyNtCvKz/E=; b=NRauF93f0xE6IG2ijnet+MpxUiDOab45FBNj8tOOPRR541eRApUdrzj+b3nPTzTo89 u+YKeD96a80jPJizGSfuGH7mCVDWZwRgJbkSF+CWUhN1vt2oC+WIsZN1ODD+3sHUKhAa 4AcCbhmM2b/6u3aGZQDlehc8HmPKqJR4qllp73m9W+6WXGBgYf0y9WAk8arXxQK5HOo8 MB+tAjdto0yJvvW4rCCJz2J34u6KkyUlE/3CavBTwYZKfcax08PRNADctlyt1+wKQ7U2 bh298GWcr2zRl/v8cCax/M9KF+ioNPWcUZuDaApwdKT0p5qwNPeyS1EjJUzbIDMRt/mC y//Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si12618163eda.336.2019.10.14.16.32.43; Mon, 14 Oct 2019 16:33:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732065AbfJNSjG (ORCPT + 99 others); Mon, 14 Oct 2019 14:39:06 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:40322 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731370AbfJNSi6 (ORCPT ); Mon, 14 Oct 2019 14:38:58 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iK5F7-0005bM-Mt; Mon, 14 Oct 2019 20:38:53 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 44F311C0489; Mon, 14 Oct 2019 20:38:48 +0200 (CEST) Date: Mon, 14 Oct 2019 18:38:48 -0000 From: "tip-bot2 for Talel Shenhar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqchip/al-fic: Add support for irq retrigger Cc: Talel Shenhar , Marc Zyngier , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <1568018358-18985-1-git-send-email-talel@amazon.com> References: <1568018358-18985-1-git-send-email-talel@amazon.com> MIME-Version: 1.0 Message-ID: <157107832821.12254.3146433351737655073.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 9c426b770bd088f18899f836093d810a83b59b98 Gitweb: https://git.kernel.org/tip/9c426b770bd088f18899f836093d810a83b59b98 Author: Talel Shenhar AuthorDate: Mon, 09 Sep 2019 11:39:18 +03:00 Committer: Marc Zyngier CommitterDate: Mon, 09 Sep 2019 18:11:47 +01:00 irqchip/al-fic: Add support for irq retrigger Introduce interrupts retrigger support for Amazon's Annapurna Labs Fabric Interrupt Controller. Signed-off-by: Talel Shenhar Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/1568018358-18985-1-git-send-email-talel@amazon.com --- drivers/irqchip/irq-al-fic.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/irqchip/irq-al-fic.c b/drivers/irqchip/irq-al-fic.c index 1a57cee..0b0a737 100644 --- a/drivers/irqchip/irq-al-fic.c +++ b/drivers/irqchip/irq-al-fic.c @@ -15,6 +15,7 @@ /* FIC Registers */ #define AL_FIC_CAUSE 0x00 +#define AL_FIC_SET_CAUSE 0x08 #define AL_FIC_MASK 0x10 #define AL_FIC_CONTROL 0x28 @@ -126,6 +127,16 @@ static void al_fic_irq_handler(struct irq_desc *desc) chained_irq_exit(irqchip, desc); } +static int al_fic_irq_retrigger(struct irq_data *data) +{ + struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); + struct al_fic *fic = gc->private; + + writel_relaxed(BIT(data->hwirq), fic->base + AL_FIC_SET_CAUSE); + + return 1; +} + static int al_fic_register(struct device_node *node, struct al_fic *fic) { @@ -159,6 +170,7 @@ static int al_fic_register(struct device_node *node, gc->chip_types->chip.irq_unmask = irq_gc_mask_clr_bit; gc->chip_types->chip.irq_ack = irq_gc_ack_clr_bit; gc->chip_types->chip.irq_set_type = al_fic_irq_set_type; + gc->chip_types->chip.irq_retrigger = al_fic_irq_retrigger; gc->chip_types->chip.flags = IRQCHIP_SKIP_SET_WAKE; gc->private = fic;