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; From patchwork Sun Feb 20 13:38:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12752700 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 E6016C433EF for ; Sun, 20 Feb 2022 13:28:54 +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: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=DAbpiuFEocAIYXFVtuVN9ueI84jxSkZvJHZCi8ZMf1E=; b=rv0QoCPYceD941 EPgvXkFeDFQvvYCYhbniUDBYuXyWCT17Zf3w5JzGQ/UMXbM3wEsnEjMt13keZz8ba/tGye1UhTEOz tl3rbLSCweoOhl8uBySIfD/sMrwZlpWVYueNXTX2wvtdX4RNTiCaFLnhTzjlYh962MtBwJpuPqPn+ 35TvezpeL0LX2yIPjll8P1wpoUh2LKUgd+Vx4uq3LrtbCJUEfNSOeGynuWh0OXNFrnlKQbQmNkTh2 GmtUrBI1CVy/clIwToPbHDtR9cjljkiNA3PfnpnUXEPPhre8sO4arDDa7w/C+kG4rgWFNT9WJKKLT DEG+ZfWrcHAHpTzC7x/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLmF6-001Qnz-Ll; Sun, 20 Feb 2022 13:27:12 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLmEq-001Qgy-AG for linux-arm-kernel@lists.infradead.org; Sun, 20 Feb 2022 13:26:59 +0000 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220220132648epoutp02ae7f2bd0e5634d6edf7b86213e463ce2~VgXwZmvLp2263222632epoutp02K for ; Sun, 20 Feb 2022 13:26:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220220132648epoutp02ae7f2bd0e5634d6edf7b86213e463ce2~VgXwZmvLp2263222632epoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1645363608; bh=cnyxtRrWbeih/IsRFZWojusqHAb9pkqNvcPgg6+wo9w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VaIe7qO4/8pybZaqY/kFO4OQW3C/8GvAfAyXaVbFvTCFTrc/J9UV/ew5gWOHbBvgS KxxzoGhqmCm9x8E9mYHffzNdgcmhIX9wYoeGFN7XvT/daK1Mc5EaNqlF1kI1zxlCPv oOn8t7vfEPXfDq8FrYn1rawMTffjZqylA5ad+pMw= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20220220132647epcas5p47ba7f49cdac3bc6a9b33ecb5bc72791e~VgXvUk-pt2772027720epcas5p4q; Sun, 20 Feb 2022 13:26:47 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.177]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4K1mRj5yYfz4x9Pr; Sun, 20 Feb 2022 13:26:41 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1B.EB.06423.F8142126; Sun, 20 Feb 2022 22:26:39 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20220220132640epcas5p1a523e6db151e0cb76c0edb6d32959fe5~VgXo52BYI0740907409epcas5p11; Sun, 20 Feb 2022 13:26:40 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220220132640epsmtrp169912302bd2de67cef39c6566e19fec7~VgXo9ftea0610706107epsmtrp1Z; Sun, 20 Feb 2022 13:26:40 +0000 (GMT) X-AuditID: b6c32a49-b01ff70000001917-ea-6212418f0b82 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 8F.AD.29871.E8142126; Sun, 20 Feb 2022 22:26:38 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220220132639epsmtip176e169ab4ee7ec4766e505fbcf966009~VgXnjvWMC2735827358epsmtip1P; Sun, 20 Feb 2022 13:26:39 +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 2/3] clocksource/drivers/exynos_mct: bump up mct max irq number Date: Sun, 20 Feb 2022 19:08:23 +0530 Message-Id: <20220220133824.33837-2-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220220133824.33837-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLKsWRmVeSWpSXmKPExsWy7bCmlm6/o1CSweSXVhYP5m1js5j3WdZi 49sfTBabHl9jtbi8aw6bxYzz+5gs1h65y26xaOsXdovNm6YyO3B6zGroZfO4c20Pm8e7c+fY PTYvqffo27KK0ePzJrkAtqhsm4zUxJTUIoX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racker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsWy7bCSnG6fo1CSwfSdlhYP5m1js5j3WdZi 49sfTBabHl9jtbi8aw6bxYzz+5gs1h65y26xaOsXdovNm6YyO3B6zGroZfO4c20Pm8e7c+fY PTYvqffo27KK0ePzJrkAtigum5TUnMyy1CJ9uwSujCkN35kK9rBWTPjm08B4lKWLkZNDQsBE YlbzGfYuRi4OIYHdjBIHni2DSkhLXN84gR3CFpZY+e85VFETk8Sl7+1MIAk2AW2Ju9O3gNki Ah4Sbf/uMYMUMQvcY5T43TKNESQhLBAksWDKI1YQm0VAVWLW991gcV4BG4m3V99DbZOXWL3h AFAzBwengK3ErU5jkLAQUMnsu/uZJzDyLWBkWMUomVpQnJueW2xYYJiXWq5XnJhbXJqXrpec n7uJERyOWpo7GLev+qB3iJGJg/EQowQHs5II74eDvElCvCmJlVWpRfnxRaU5qcWHGKU5WJTE eS90nYwXEkhPLEnNTk0tSC2CyTJxcEo1MNW7TD97SeH9mvcSjXbxX+4Fvi8IT4je7xxorMVe cKbU5+G8afKn8ieIPFQ6d/bP/ovTvVcuatwv5Cfsnbz7R/91ttebPwoaznBlEL23oCnw2IS1 JzaqP7TnjXo721mMd19QROjf2Ht7Pzem6Gdf1jW0cNv4cMaxebcVOBolHMUO9taxystHFiau /vfZLyk0+amSrp+3CJ+zoprzgwIbbpYtxa+s9CQlGD89rt+kdXvVxN+fg6e8bjjPey7u9XbH BVefXjBy0La8sKnNW7WuZvmHCUV8l9a6TO29pXTf+oRjEeMp55tmIhNOBc8+cDNAQunrkwlr dOIi/O1eeWTER/wvmLcgN/LiQ5PZlvJJe5VYijMSDbWYi4oTATjObqe2AgAA X-CMS-MailID: 20220220132640epcas5p1a523e6db151e0cb76c0edb6d32959fe5 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220220132640epcas5p1a523e6db151e0cb76c0edb6d32959fe5 References: <20220220133824.33837-1-alim.akhtar@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220220_052656_729747_2FE6F30F X-CRM114-Status: GOOD ( 14.43 ) 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 Bump-up maximum number of MCT IRQ to match the binding documentation. Signed-off-by: Alim Akhtar Reviewed-by: Krzysztof Kozlowski --- drivers/clocksource/exynos_mct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index b3f3d27a837b..0c7931f7f99a 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -64,7 +64,8 @@ #define MCT_G0_IRQ 0 /* Local timers count starts after global timer count */ #define MCT_L0_IRQ 4 -#define MCT_NR_IRQS 12 +/* Max number of IRQ as per DT binding document */ +#define MCT_NR_IRQS 20 enum { MCT_INT_SPI, From patchwork Sun Feb 20 13:38:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12752699 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 63AC1C433F5 for ; Sun, 20 Feb 2022 13:28:54 +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: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=77OSUWachp/z8rBVO/pbKPXaMFtFubQwlhGpWTzTHCk=; b=1a42lvz//imzHy eEbIgwefybBBYa4FnAngPwzZFN3EOnHljyj95w8kqiMVTVbdna3Jgp29bU4tTqYn1U3ep6jnnpBrR 96aLfKY/+h5OLbASa8N/Dl/y6p9dKpO4+t1o+aEbmN7uzZuFd7GjW4aL7FNme/uWQnqqzb42KSQtq xCp1y1k1Dt6crMDcoGLT4K6r0+3NT95aZK3DqYBnaH04+N7Q3mkSL7V3j2jiC4aeB7lgvmh5+CdWK y7tJt3ty6noHYftWko/EtxRvFtzw/r7ah+p3PAFaUVZsCNiDj17rkbOzvYPECMbcBIfDEiO+HsT/J 9P7MzU51eeF318fyGq+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLmFH-001Quo-Dw; Sun, 20 Feb 2022 13:27:23 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLmEs-001Qig-4i for linux-arm-kernel@lists.infradead.org; Sun, 20 Feb 2022 13:27:00 +0000 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220220132650epoutp0110892e91b1c7cd7ab64d5cb98ce4553e~VgXyU--L-2112221122epoutp01M for ; Sun, 20 Feb 2022 13:26:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220220132650epoutp0110892e91b1c7cd7ab64d5cb98ce4553e~VgXyU--L-2112221122epoutp01M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1645363610; bh=tSo2reU1UKCOdjcpnCsVa18TmwpMfYdF3qeO3szLFLk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fYfwX0wJl5NHeHvxX6MIwrB6Z2snqugzowRdGTJqYhZrWKHGYBdvEgJd9SupJT6HO hbqONKr8usC5KrcQxWb4Z403RKuWlGs5KSQ2pKRCIc/ACo4kv6XjG6/D6zqEuclRyn CP+sBKm/gfOBxa7tuLGRmN9NDqCAak10NiXnCd4o= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20220220132650epcas5p40eff534d30a733844e0838a3f6322d4c~VgXxuCVKU2772027720epcas5p4s; Sun, 20 Feb 2022 13:26:50 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.180]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4K1mRn1kZbz4x9Pp; Sun, 20 Feb 2022 13:26:45 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id EB.EB.06423.39142126; Sun, 20 Feb 2022 22:26:43 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20220220132643epcas5p39d48a27bb3fcde2ea3a01a260b46e1a0~VgXrsbyFZ0719107191epcas5p3l; Sun, 20 Feb 2022 13:26:43 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220220132643epsmtrp1c95de1de4426b0fce5bf13fe49af6b7b~VgXrxaHRp0610706107epsmtrp1b; Sun, 20 Feb 2022 13:26:43 +0000 (GMT) X-AuditID: b6c32a49-b13ff70000001917-ef-62124193a85e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 0D.F0.08738.19142126; Sun, 20 Feb 2022 22:26:41 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220220132642epsmtip1032ae595d8aa0bbeedff726725dabe64~VgXqVOPN12018020180epsmtip1v; Sun, 20 Feb 2022 13:26:42 +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 3/3] clocksource/drivers/exynos_mct: bump up number of local timer Date: Sun, 20 Feb 2022 19:08:24 +0530 Message-Id: <20220220133824.33837-3-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220220133824.33837-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPKsWRmVeSWpSXmKPExsWy7bCmuu5kR6EkgykPhCwezNvGZjHvs6zF xrc/mCw2Pb7GanF51xw2ixnn9zFZrD1yl91i0dYv7BabN01lduD0mNXQy+Zx59oeNo93586x e2xeUu/Rt2UVo8fnTXIBbFHZNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJ uam2Si4+AbpumTlANykplCXmlAKFAhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCkwK9IoTc4tL 89L18lJLrAwNDIxMgQoTsjNuTl/AVvCMo2LLs/dMDYxz2bsYOTkkBEwkpl9extzFyMUhJLCb UWLx1ilQzidGiTXvNrBAOJ8ZJT6efs4K07J31QRWiMQuRomnL5uYQRJCAi1MEh8nCoDYbALa Enenb2ECsUUE3CRuNHYwgTQwC1xjlPgz8RAjSEJYIFyi//8isKksAqoS52/cBhvEK2AjcfbT B6gD5SVWbzgAFOfg4BS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KnL9xmxnE5hWwkTj76QPU fHmJ1RsOMIOUcwrYStzqNIZYZSMx++5+5gmMfAsYGVYxSqYWFOem5xYbFhjlpZbrFSfmFpfm pesl5+duYgQHo5bWDsY9qz7oHWJk4mA8xCjBwawkwvvhIG+SEG9KYmVValF+fFFpTmrxIUZp DhYlcd4LXSfjhQTSE0tSs1NTC1KLYLJMHJxSDUzHf5U5vOCau7de+oZ9u1Sl0YV/++Iidt26 +0D3AI/XN+lVIkb/Xx1ubNJY80P32i0Gu7gNW1Tvrt4QLSKsuWmaS0XO33VrprRuCjc6kzvL h6erfUP7lV8T3/foZ/HVlD0+8nnupI+snEGnFCTt3zR0d1bGHXjh9YnldN40i80tqXYFsbqS Yu+bvnR53ghSOVl5gvUU1843p3zla6a93Rt75HLJlfUvbMJEWJap7PE9F+HLduyQdvDU61NP f5v/N5iXLXVH28YdCw3ucHq78CzWWPqdQYZnVcB9Z41ah0beQvt//T/7LuqysCzYNTP51sTL L05ymeXsWaYTYHi2riVj/v/w6DaWSBPjgr4L3b1KLMUZiYZazEXFiQDkHmSWtQIAAA== X-CMS-MailID: 20220220132643epcas5p39d48a27bb3fcde2ea3a01a260b46e1a0 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220220132643epcas5p39d48a27bb3fcde2ea3a01a260b46e1a0 References: <20220220133824.33837-1-alim.akhtar@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220220_052658_586574_7337C8D7 X-CRM114-Status: GOOD ( 19.49 ) 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 As per the dt binding, maximum number of local timer can be up to 16. Increase the array size of the _name_ variable which holds the number of local timer name per CPU to reflect the binding. While at it, change the magic number to a meaningful macro. Signed-off-by: Alim Akhtar --- drivers/clocksource/exynos_mct.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 0c7931f7f99a..8d63a9376701 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -66,6 +66,8 @@ #define MCT_L0_IRQ 4 /* Max number of IRQ as per DT binding document */ #define MCT_NR_IRQS 20 +/* Max number of local timers */ +#define MCT_NR_LOCAL_TIMERS 16 enum { MCT_INT_SPI, @@ -80,7 +82,7 @@ static int mct_irqs[MCT_NR_IRQS]; struct mct_clock_event_device { struct clock_event_device evt; unsigned long base; - char name[10]; + char name[MCT_NR_LOCAL_TIMERS]; }; static void exynos4_mct_write(unsigned int value, unsigned long offset)