From patchwork Wed Aug 7 16:40:54 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: 13756501 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 81C4BC52D73 for ; Wed, 7 Aug 2024 16:43:32 +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=pYmHz4FJHSL3AIoLUwJBL2/qnA/GcBRPeHd9jEAb0X0=; b=AHB+DR+RoKeHomu5JhdBlI5wMg t1zqrOpVJ17PMW8mp10rLzhRQi+DWJPf+EViyt8lsBhc9Kb3lktOdw0SZCsYoo7lHEO/IP/hiC9WK q8fJBiYr+IfuRGDBAC3XiUHPFWCvQH3zxLIUBB9Hnnt9YMPfLeYCUQy1opniwdzIPmZBI5nfvFITT TwCyF5OsVoHLjxdCOCncZJY74Dkq1fvuKRN3T8o7grxQW8u16eIeK40aww0jksYxKFgsM315jLG8R 1/m2e3mVisLrDB2Op0Je5hLfG9IQWi6stE3Pn/5ayIpc3+cffn+RXsJ74K723IeLV59IdcgN1LNBe IlZoGSQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbjky-00000005ijE-022F; Wed, 07 Aug 2024 16:43:24 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbjiu-00000005iFK-05Lb for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 16:41:17 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 7657E611CB; Wed, 7 Aug 2024 16:41:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BEFAC4AF09; Wed, 7 Aug 2024 16:41:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1723048875; bh=yPMbPN6qCbuyrclzMC1hlOj305rX0tVRIJkxt0kThMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pf0HoE4VXIfrB2SEF7QNO1sPvyPxoRebnRLgUFRjFBMsIg1FCPOleapIzWI8yoDXF tEpL6ZqkByw7NmhqJ/pTl/x28CNq3jnTK1fEGJmtKWC5zDX+0+i90F2KFdGJcIDrp9 kkDb2OB+EQx4TOK2D2tjt+hGAEbsl2TvThv8hD7eGF9eZJ4NZJVhDL4Wiqb+XtcNr7 rQeOh8eijmaW/cTBKGs7tUYcvsoAolgVhJ/0BmU4mSXgtY4LyhbwZLHfnCm912ETZb oSj7XJPtyB6c7+2JukA0gR8mzst2eqv+yHE5P7Z2O0cu2z0mlR4+wR0DF1W8HrPuD6 5kKtH8AMPFjtw== 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 v2 02/12] irqchip/armada-370-xp: Drop msi_doorbell_end() Date: Wed, 7 Aug 2024 18:40:54 +0200 Message-ID: <20240807164104.4140-3-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_094116_139395_261AD516 X-CRM114-Status: UNSURE ( 9.27 ) 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 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 9a431d04ed19..fcfc5f86fbff 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) @@ -190,11 +188,6 @@ static inline unsigned int msi_doorbell_size(void) return mpic_is_ipi_available() ? PCI_MSI_DOORBELL_NR : 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;