From patchwork Sun Feb 20 13:38:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12752701 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 05DADC433FE for ; Sun, 20 Feb 2022 13:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References: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:In-Reply-To: List-Owner; bh=PxbcOht0tGkJgFofJNu8+EOD700MwjuKAQkOA1IsrQQ=; b=HXIu5APNX+v/Nu 8iaFLMV0jlBSj2JlcTA1L83GdmWIXfGSdi4+ng9gMERMVhwhv7jOirybcBD74GN6tAimPtWWKjF0W mVE6ncSGfuzmwZFj6qjo2n5AnSl/b82vRa+ecIM5TQ5obF0Z82shqNnc6TiLeGBQGUxWfKtKZEPId 8HP74CBKLXPaZxRkqg3AbofghgSkJwAJoruhnvEL/DP/G4Sr3MvjOv6CukroynPBmJoRRwuchzXiA flj7k0Z8TzOMaER7q+BNoBNLrHnwFcUuGO5YNUKE4nCY1hRG73lVVX5o5LEd8C3O1pDuf7L9azjV1 oxadrlG79EQssEY3C2fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLmEu-001QjH-N0; Sun, 20 Feb 2022 13:27:00 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLmEn-001Qg0-DC for linux-arm-kernel@lists.infradead.org; Sun, 20 Feb 2022 13:26:55 +0000 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220220132642epoutp04cb3b663775db479bd475fa94a608bca9~VgXqZ3wcz2111321113epoutp04Y for ; Sun, 20 Feb 2022 13:26:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220220132642epoutp04cb3b663775db479bd475fa94a608bca9~VgXqZ3wcz2111321113epoutp04Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1645363602; bh=+HD+D2BQMpJSVzjCz+rHhjvbcjam5OKuDzCH7joqwW8=; h=From:To:Cc:Subject:Date:References:From; b=l5PVy6J4AuFpVUoRNYoR0Htao6iFNGLNMnFzP0U4G9DygsPjQsy3vZFU1lHyS+MGm dkclNdbFRBB2mi/UTrMDk28LwLOiW+uYiq+5V5cYN3TQfvo6x1Z7mhB/S0sBBeKWOT 3/Hr+xS9nTxSZxf57VuWjKJ8Fzy7dqMSdF2eoqGY= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20220220132641epcas5p3a51612aef12f9f3f7bb784be42478ac4~VgXpv1YiG3031930319epcas5p3C; Sun, 20 Feb 2022 13:26:41 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.183]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4K1mRd5JJlz4x9Pp; Sun, 20 Feb 2022 13:26:37 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 29.EB.06423.B8142126; Sun, 20 Feb 2022 22:26:35 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20220220132636epcas5p4f320ac6dff9621b75481bd71b1f33183~VgXlCPyWX2553925539epcas5p4p; Sun, 20 Feb 2022 13:26:36 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220220132636epsmtrp1e71b6060479be13e4c8b6a4e351abb0f~VgXlIoP-w0610706107epsmtrp1Y; Sun, 20 Feb 2022 13:26:36 +0000 (GMT) X-AuditID: b6c32a49-b01ff70000001917-e4-6212418bc4da Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id EE.AD.29871.A8142126; Sun, 20 Feb 2022 22:26:34 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220220132635epsmtip1402bbd39080b2d5b2f56d2cbed28a9b6~VgXjsfVTd2735827358epsmtip1O; Sun, 20 Feb 2022 13:26:35 +0000 (GMT) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: krzysztof.kozlowski@canonical.com, linux-samsung-soc@vger.kernel.org, daniel.lezcano@linaro.org, tglx@linutronix.de, pankaj.dubey@samsung.com, m.szyprowski@samsung.com, Alim Akhtar Subject: [PATCH v2 1/3] clocksource/drivers/exynos_mct: Remove mct interrupt index enum Date: Sun, 20 Feb 2022 19:08:22 +0530 Message-Id: <20220220133824.33837-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMKsWRmVeSWpSXmKPExsWy7bCmum63o1CSwYPdehYP5m1js5j3WdZi 49sfTBabHl9jtbi8aw6bxYzz+5gs1h65y26xaOsXdovNm6YyO3B6zGroZfO4c20Pm8e7c+fY PTYv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== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42LZdlhJTrfLUSjJYMkaQ4sH87axWcz7LGux 8e0PJotNj6+xWlzeNYfNYsb5fUwWa4/cZbdYtPULu8XmTVOZHTg9ZjX0snncubaHzePduXPs HpuX1Hv0bVnF6PF5k1wAWxSXTUpqTmZZapG+XQJXxot599gLmrkr1vyXbWD8ztHFyMkhIWAi 0fN4CXMXIxeHkMBuRomj2/6zQySkJa5vnABlC0us/PecHaKoiUni8+lZbCAJNgFtibvTtzCB 2CICHhJt/+6BTWIWuMco8btlGiNIQlggXGLZuR4WEJtFQFXi4q0TYA28AjYSZ58tYYLYIC+x esMB5gmMPAsYGVYxSqYWFOem5xYbFhjmpZbrFSfmFpfmpesl5+duYgQHmJbmDsbtqz7oHWJk 4mA8xCjBwawkwvvhIG+SEG9KYmVValF+fFFpTmrxIUZpDhYlcd4LXSfjhQTSE0tSs1NTC1KL YLJMHJxSDUwO/v3bvHNs2FbHPrGP17mZskcwtXiK/JejbS9+1zT9S4uYp5yqeShBIibjSjv/ 73My8+ufBmhud7hrc83jSt20ZWLeHNY3L13iYglamyV+2CsjeP3cns8rxLrP31suldbmezxp w2l3o8KFrlafWxeX3c+6/qv+yhzD/SZSj/+ucgg0sOhQOMhUYmUcrLzo0YY5obOq302+yRpv UBH3tH3fsr9GvMVXuQ8vWLrh38RLof7x8TtSlyruPJjeu+DH/rq9+/x5si4e3JO8Tr61p3b/ ypCOs//D919ft9NigvWMQj5vntrz0yW58wxUd8yfdMqi8lNfYlzpUXM9/SXsd2pWZr6Lubol X+S4wIHqIy1KLMUZiYZazEXFiQAXywAdnwIAAA== X-CMS-MailID: 20220220132636epcas5p4f320ac6dff9621b75481bd71b1f33183 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220220132636epcas5p4f320ac6dff9621b75481bd71b1f33183 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220220_052653_898750_E6FB12CE X-CRM114-Status: GOOD ( 13.84 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MCT driver define an enum which list global and local timer's irq index. Most of them are not used but MCT_G0_IRQ and MCT_L0_IRQ and these two are at a fixed offset/index. Get rid of this enum and use a #define for the used irq index. No functional changes expected. Signed-off-by: Alim Akhtar Reviewed-by: Krzysztof Kozlowski --- drivers/clocksource/exynos_mct.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) * Changes since v1: - Seperate out bumping up of max mct irq and local timer number as commented by Krzysztof diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 6db3d5511b0f..b3f3d27a837b 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -60,27 +60,17 @@ #define MCT_CLKEVENTS_RATING 350 #endif +/* There are four Global timers starting with 0 offset */ +#define MCT_G0_IRQ 0 +/* Local timers count starts after global timer count */ +#define MCT_L0_IRQ 4 +#define MCT_NR_IRQS 12 + enum { MCT_INT_SPI, MCT_INT_PPI }; -enum { - MCT_G0_IRQ, - MCT_G1_IRQ, - MCT_G2_IRQ, - MCT_G3_IRQ, - MCT_L0_IRQ, - MCT_L1_IRQ, - MCT_L2_IRQ, - MCT_L3_IRQ, - MCT_L4_IRQ, - MCT_L5_IRQ, - MCT_L6_IRQ, - MCT_L7_IRQ, - MCT_NR_IRQS, -}; - static void __iomem *reg_base; static unsigned long clk_rate; static unsigned int mct_int_type;