Message ID | 20240715105156.18388-14-kabel@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 07A42C3DA59 for <linux-arm-kernel@archiver.kernel.org>; Mon, 15 Jul 2024 10:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jl25GEi80Y/97nrsvvfDUu2+Fg+ryJ2n1+Cth6fT4G0=; b=ObQtI6MowMj1ErfrSlk+5nOytR Ypc0a5tAjQIfAVN/UpIhgIdYJ7x8iBToDYPOIWB0c08glz3O/0nUY3G/1ozAn1CdchzHBD9gxAPG6 TmV9wulM1M6aH8iB3ALE6da2BxPpH4fW2bsNdtd4xyMJXyq9Vt8GMQskcIppJN6q7cA/Pzzy4H39Q ZNpgpJFf8APnty8BoltH1BLrH/yJVyk95Cde0yHnVGON/bZkcuHua18pxOscXsfUfBZSXZ84QmPlg cBbJULBEtjwlJLvFuD4qAlXu1XcLr80P2UqLM5Im1S8tn3JKHqM8o1L5hnxML9jMNrg+qZZRU16JR uOip1KQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTJNC-00000006mYJ-3C8Y; Mon, 15 Jul 2024 10:56:02 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTJJw-00000006lWc-1dQ5 for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 10:52:42 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id B3DAECE0EEA; Mon, 15 Jul 2024 10:52:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C69A4C4AF0A; Mon, 15 Jul 2024 10:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721040758; bh=cyhQbqMT8K6us6T6cl+OGFlbj0kB/PPZoztSxX04igQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=suoD0sgu5WItj/+50VBYYOMHk/XBLeNJDerl8BlS2q52vJy2ytn8R29ornqfGUuY8 mt3wJ9AU0FNjxsb+pyRBlh1iukRTDbTqZjPIt8EB1SBMSTw6tvXopU8XvyIrKyqiiW l+VbzlTGYSp5uKlZMDZeN5k7/th0xdSmoIB2ZbYEttZeBbR+dtMpiBfiwkPS9F8I/q wvjbHSr0wEdtUn7KrxQDy6eBF8eWhQ0n9x9W7EpwGxTWg53xOORr2luyCAqWnsJtp7 JkAVMkrYFmZ1xDk9fabxyRPRwuVGXWthfKNpc7fB5L2xAfvOagQdQISppudVvJ6iRq ET1JD4BYtueEA== From: =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org> To: Andrew Lunn <andrew@lunn.ch>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, linux-arm-kernel@lists.infradead.org, arm@kernel.org, Andy Shevchenko <andy@kernel.org>, Hans de Goede <hdegoede@redhat.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Cc: =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org> Subject: [PATCH 13/13] irqchip/armada-370-xp: Use the mpic_is_ipi_available() helper in one more case Date: Mon, 15 Jul 2024 12:51:56 +0200 Message-ID: <20240715105156.18388-14-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240715105156.18388-1-kabel@kernel.org> References: <20240715105156.18388-1-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_035240_926978_804BF3A0 X-CRM114-Status: GOOD ( 12.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
armada-370-xp irqchip updates round 5
|
expand
|
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 3cae6ceacc73..56ab14f0d496 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -889,7 +889,7 @@ static int __init mpic_of_init(struct device_node *node, return err; } - if (mpic->parent_irq <= 0) { + if (mpic_is_ipi_available(mpic)) { irq_set_default_host(mpic->domain); set_handle_irq(mpic_handle_irq); #ifdef CONFIG_SMP
There is one last case where we can use the helper function mpic_is_ipi_available() instead of hardcoding the condition. Signed-off-by: Marek BehĂșn <kabel@kernel.org> --- drivers/irqchip/irq-armada-370-xp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)