From patchwork Mon Jul 15 10:51:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 13733311 Return-Path: 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 BED0EC3DA5D for ; Mon, 15 Jul 2024 10:53:07 +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=t42dGYxz+VDl+G5Gpp+t6HfE6wDDz7VLq4Qd49+Pxxc=; b=SXrWMl94TrmWY/6XF+VwXl1GYv MhjGrb3ui6raZ/eSkeypFHmqD87zkzd1vDEHhbMHzeR0HD5WwDahacOfltfUiLjq/lI2ZD+cJDM1u XQu6E767qhMJx1PY4dAGthtKn0ugeA/H0ETHDeEwRh+99o3DxDITNk/Z0uRoF9ryJvsJINVkQmm/3 5ldjy/yGqX3dy9IITOZKYR7TNcVYxUPfuCRys2BcH+CcmtDkDJuKh70IJ/W0gbms2LR5QWHLH2tId 2BERG9gBjdnsB5++MiBlUDzNDdQBz/hRK9nWgVwhqBylVfs8WKfDrGrBJx8szNqPrYoggasVlWKik uqm4TobA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTJKD-00000006lbx-42nt; Mon, 15 Jul 2024 10:52:57 +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 1sTJJU-00000006lLM-0iKU for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 10:52:13 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id CA667CE0EF3; Mon, 15 Jul 2024 10:52:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8AF7C4AF0B; Mon, 15 Jul 2024 10:52:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721040729; bh=AnmYC7i4Ke+Wf+DIm/t5NkZWiLWC0n97OJAqGG29dKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WaQyYyp1lQl1LIcmvhskbMWs/Xj6ZyjUZHERKnz3g5/tg1F74Um9wf3VLXwFi3YGS L6xl3zCiUwWpxQeC7kS6im9pSC4zgFyLTf8bfu9zXSFQ0BwiaPbQ3+727AHiw59SPG 1DJjpZuCVrGsMyii1brbsCgIQRfcqVbYcSKqOHwNwBbR/qF7cr60wgWLrlFxmFxS0D qA9P3sbPrS3373n+0GrR2nEnAllG0y9iGwuGcCNU/Sdc3/Db0aUyN3n9cNsKy1WNVI J3vbZL4jRQiJVE6ZOZGiO31JZR/QyjkkzjwMalYrCb5mPqV7AJS6EDRskwt22A84yn TuSbIgJqV39IA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, arm@kernel.org, Andy Shevchenko , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH 02/13] irqchip/armada-370-xp: Drop msi_doorbell_end() Date: Mon, 15 Jul 2024 12:51:45 +0200 Message-ID: <20240715105156.18388-3-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_035212_406602_ABF89DA0 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Drop the msi_doorbell_end() function and related constants, it is not used anymore. Signed-off-by: Marek BehĂșn --- drivers/irqchip/irq-armada-370-xp.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 8fb70a2e0206..590f08b9dbf7 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -140,13 +140,11 @@ #define IPI_DOORBELL_MASK GENMASK(7, 0) #define PCI_MSI_DOORBELL_START 16 #define PCI_MSI_DOORBELL_NR 16 -#define PCI_MSI_DOORBELL_END 32 #define PCI_MSI_DOORBELL_MASK GENMASK(31, 16) /* MSI interrupt definitions for non-IPI platforms */ #define PCI_MSI_FULL_DOORBELL_START 0 #define PCI_MSI_FULL_DOORBELL_NR 32 -#define PCI_MSI_FULL_DOORBELL_END 32 #define PCI_MSI_FULL_DOORBELL_MASK GENMASK(31, 0) #define PCI_MSI_FULL_DOORBELL_SRC0_MASK GENMASK(15, 0) #define PCI_MSI_FULL_DOORBELL_SRC1_MASK GENMASK(31, 16) @@ -193,12 +191,6 @@ static inline unsigned int msi_doorbell_size(void) PCI_MSI_FULL_DOORBELL_NR; } -static inline unsigned int msi_doorbell_end(void) -{ - return mpic_is_ipi_available() ? PCI_MSI_DOORBELL_END : - PCI_MSI_FULL_DOORBELL_END; -} - static inline bool mpic_is_percpu_irq(irq_hw_number_t hwirq) { return hwirq <= MPIC_MAX_PER_CPU_IRQS;