Message ID | 20240807164104.4140-13-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 474A4C52D73 for <linux-arm-kernel@archiver.kernel.org>; Wed, 7 Aug 2024 16:48:51 +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=lrNfXAZpMIuQEomrYbcgL7YZtibzdVHi6KNMvS2zBEE=; b=aPcvSaF3SzYk+oSs3GUw9BMd5i Mmv45yBfVV5CEGhQg5D3xKx9ukZ86OpzKYGeuvWeYvg19MFtlXHumKwXUPCLr5zRnvx/5A2YBx1h2 43uRX1Vf+VN1nR6esS/z+aTCeSVVf+HSwiM2VxNqoKM1iQNTP0DGXco/WlopvUWuWgRifVhKDLPYr zEEq1SQg0S3UWUHcaf2c4/7WGFn5gRhNB3ft8v2m4WJtOdoSpvvPJu+vgbukLUisX5nCWSshtCkD6 0oQ+nmaB67xLNWlrwM24CFAnp+YCBpbj+A2Ks3b9XaOetT8GPcBzq2+9kp/tZDcsbFHW3WApI8OJX qO44W0gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbjq6-00000005jgF-3CU7; Wed, 07 Aug 2024 16:48:42 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbjjK-00000005iOO-1k5B for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 16:41:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 8E568611F6; Wed, 7 Aug 2024 16:41:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A4B9C4AF0D; Wed, 7 Aug 2024 16:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723048901; bh=rFVxZc9k66iR8JgEapiNdBkEACOOJl9qnOdcn5rW27M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kxbq/Kjh/DQJt5CdZM6G5vv5KRjcnGF/M+3UPfq3MHKXuxMhVupmg1+ycJ/ePahrZ 731lOFFtoAFsULNwJdc4SweMgGClMZnqRbXZUcnQNwkyCpLcvWC2q4vgjl/sHaX+xb toQS2YIjECXOGlLDoqQwbhCfAvw6VWyAmajLea1oghEoIpZmBExHu3xKSn0i+vpCYq vIVa7II/u2+DNxVre0o5UUXd5L8kkrq04nuh9Qe7Xlu7gq5ntibXadp+7dP+TpvQe2 3EBTTdKmUsZXBdPyiC9daQU6Co/LuVS0a/EgV3l5anq6269BS0xITono8ghlVcr4r0 9ykWNA9j3Jo0w== 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 v2 12/12] irqchip/armada-370-xp: Use the mpic_is_ipi_available() helper in one more case Date: Wed, 7 Aug 2024 18:41:04 +0200 Message-ID: <20240807164104.4140-13-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240807164104.4140-1-kabel@kernel.org> References: <20240807164104.4140-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-20240807_094142_538918_19040DB8 X-CRM114-Status: GOOD ( 12.61 ) 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 4f3f99af12b2..d7c5ef248474 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -879,7 +879,7 @@ static int __init mpic_of_init(struct device_node *node, struct device_node *par 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(-)