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 autolearn=ham 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 A3EBDC433ED for ; Thu, 22 Apr 2021 15:07:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 69E856141C for ; Thu, 22 Apr 2021 15:07:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237714AbhDVPIX (ORCPT ); Thu, 22 Apr 2021 11:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237540AbhDVPIN (ORCPT ); Thu, 22 Apr 2021 11:08:13 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3188C06138B for ; Thu, 22 Apr 2021 08:07:38 -0700 (PDT) Date: Thu, 22 Apr 2021 15:07:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1619104056; 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=LiR7C+iQQSrLPmg9nV5yXWzLdaGwmMQ7m6l6uCT9YSA=; b=HLxR+NTP9HaAkBfvGzH79UqzzaTenTP+Z/kQmRfT1cF/d+kUurGf8tOm9ge1dVHVyzTu6a 7henMTGK9Ixu7Dx53GDBdl2250Qk5EpQ6ssE6o1ST+EFFgeqRCYWFA4uLszJ30yfU17su1 LPPxZz8QCURI3BD8KB+7i6ZtWPokKfehV1YjUp+LUqWHIsc/MGDtt/CIkK+YZYNQxyC2P9 EOD9PUDpNMyGl30S37HTPDyHXm57U7Pgjd+33nDzPi3dbQ1ZoEL7TXZkqsCkwOzztwObAW VURe13ZxpJuBqxnrmfYDzHD24AMq1lCeVV+LxsoXGVRas9EtgNs5V6egtu0I4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1619104056; 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=LiR7C+iQQSrLPmg9nV5yXWzLdaGwmMQ7m6l6uCT9YSA=; b=9iO0YOPj3W8pQBFsDrvt3JH+bU7IG9rbXdeWL2Xcpi9Epm//JmT0+N0z2DelIYEPm6gYyr 44CT5hhWYI/9rhBA== From: "irqchip-bot for Marc Zyngier" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/jcore-aic: Kill use of irq_create_strict_mappings() Cc: Marc Zyngier , tglx@linutronix.de In-Reply-To: <20210406093557.1073423-4-maz@kernel.org> References: <20210406093557.1073423-4-maz@kernel.org> MIME-Version: 1.0 Message-ID: <161910405632.29796.9135220635740024824.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 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: 5f8b938bd790cff6542c7fe3c1495c71f89fef1b Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/5f8b938bd790cff6542c7fe3c1495c71f89fef1b Author: Marc Zyngier AuthorDate: Tue, 06 Apr 2021 10:35:51 +01:00 Committer: Marc Zyngier CommitterDate: Thu, 22 Apr 2021 15:55:22 +01:00 irqchip/jcore-aic: Kill use of irq_create_strict_mappings() irq_create_strict_mappings() is a poor way to allow the use of a linear IRQ domain as a legacy one. Let's be upfront about it. Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20210406093557.1073423-4-maz@kernel.org --- drivers/irqchip/irq-jcore-aic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-jcore-aic.c b/drivers/irqchip/irq-jcore-aic.c index 033bccb..5f47d8e 100644 --- a/drivers/irqchip/irq-jcore-aic.c +++ b/drivers/irqchip/irq-jcore-aic.c @@ -100,11 +100,11 @@ static int __init aic_irq_of_init(struct device_node *node, jcore_aic.irq_unmask = noop; jcore_aic.name = "AIC"; - domain = irq_domain_add_linear(node, dom_sz, &jcore_aic_irqdomain_ops, + domain = irq_domain_add_legacy(node, dom_sz - min_irq, min_irq, min_irq, + &jcore_aic_irqdomain_ops, &jcore_aic); if (!domain) return -ENOMEM; - irq_create_strict_mappings(domain, min_irq, min_irq, dom_sz - min_irq); return 0; }