From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EF97C56202 for ; Mon, 23 Nov 2020 16:46:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 152F9221F8 for ; Mon, 23 Nov 2020 16:46:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VOK+uSMR"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="pEKe16x3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389990AbgKWQqD (ORCPT ); Mon, 23 Nov 2020 11:46:03 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:37142 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387509AbgKWQqC (ORCPT ); Mon, 23 Nov 2020 11:46:02 -0500 Date: Mon, 23 Nov 2020 16:45:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606149960; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ogLvqf0Bj+toXu2RJnRnKoGi8YkpKVwa8dItBgaBt0s=; b=VOK+uSMRaOQm6tAmhHYFOz/hE/tQaqgYlcJRYAYRfLUd8IjuxtEE0ATbwdCny5FKmn5Dh/ Ld1u83i47yFXyvYLFVlLEbXdVjQ2XMU+EF9amxFgvErm5IXcgaVDRSg7qmOHylCRTxG9fE W/HsYwTuK/VsopPtz8IaX5hvZ1NbNIL7QGZP8SGADF3BN3Lpo8UbUofoT72anoWAr4Plir czacpJmH8LrIkrb3H/T16fj7/1Fc1QzRTlm59VVrpavpVxymUvU1bQwi8X+uhF79Ml+Ez5 +g0G0+vY5MW+l1Ia+/+3tR2bWVMhGV3wYSolq6+BISNXDRG22Ib+5aTqh1d5gw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606149960; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ogLvqf0Bj+toXu2RJnRnKoGi8YkpKVwa8dItBgaBt0s=; b=pEKe16x3ji2a/Q74X1cZd1GzSjh/NlK0u7wOTXiTWFkKLHu036XKKY/p6X8HuQSKUxpcqo c6zYh0h8U1EUf2AA== From: "irqchip-bot for Chen Baozi" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/exiu: Fix the index of fwspec for IRQ type Cc: Chen Baozi , Marc Zyngier , Ard Biesheuvel , stable@vger.kernel.org, tglx@linutronix.de In-Reply-To: <20201117032015.11805-1-cbz@baozis.org> References: <20201117032015.11805-1-cbz@baozis.org> MIME-Version: 1.0 Message-ID: <160614995899.11115.18133033549355488513.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: d001e41e1b15716e9b759df5ef00510699f85282 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/d001e41e1b15716e9b759df5ef00510699f85282 Author: Chen Baozi AuthorDate: Tue, 17 Nov 2020 11:20:15 +08:00 Committer: Marc Zyngier CommitterDate: Sun, 22 Nov 2020 10:27:23 irqchip/exiu: Fix the index of fwspec for IRQ type Since fwspec->param_count of ACPI node is two, the index of IRQ type in fwspec->param[] should be 1 rather than 2. Fixes: 3d090a36c8c8 ("irqchip/exiu: Implement ACPI support") Signed-off-by: Chen Baozi Signed-off-by: Marc Zyngier Acked-by: Ard Biesheuvel Link: https://lore.kernel.org/r/20201117032015.11805-1-cbz@baozis.org Cc: stable@vger.kernel.org --- drivers/irqchip/irq-sni-exiu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sni-exiu.c b/drivers/irqchip/irq-sni-exiu.c index 1d02762..abd011f 100644 --- a/drivers/irqchip/irq-sni-exiu.c +++ b/drivers/irqchip/irq-sni-exiu.c @@ -136,7 +136,7 @@ static int exiu_domain_translate(struct irq_domain *domain, if (fwspec->param_count != 2) return -EINVAL; *hwirq = fwspec->param[0]; - *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; + *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; } return 0; }