From patchwork Mon Feb 21 17:45:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 544596 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13D7FC433F5 for ; Mon, 21 Feb 2022 17:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233175AbiBURel (ORCPT ); Mon, 21 Feb 2022 12:34:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232223AbiBURek (ORCPT ); Mon, 21 Feb 2022 12:34:40 -0500 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7A271B798 for ; Mon, 21 Feb 2022 09:34:14 -0800 (PST) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220221173409epoutp04784899e830c0222859e7d4fa9b38e2ff~V3ZAErdEb0950509505epoutp04Z for ; Mon, 21 Feb 2022 17:34:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220221173409epoutp04784899e830c0222859e7d4fa9b38e2ff~V3ZAErdEb0950509505epoutp04Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1645464849; bh=8QoAWANia+LWatCrvDo7c2KtZTARPPnVpiok40+vh4Y=; h=From:To:Cc:Subject:Date:References:From; b=Pil936/uh1MGuQRTIDs31keIymPZaEoGCDjuOqwI2CWBs5WaCMCZkwfNQAqax7LFX WPYrEmnF6kfWYhph6Z7biMQpHooonCY8AZZP+sV9SNfS52kpKMWTMqBOh6WJpLAwj2 T0Zi1uXowwM42kIih1k1cwjPsORjY8pArIaUWDss= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220221173408epcas5p10ae318bb1443a7bdadecd43456ae8f41~V3Y_25q0b0912709127epcas5p10; Mon, 21 Feb 2022 17:34:08 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.183]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4K2Ttg1wzpz4x9Pr; Mon, 21 Feb 2022 17:34:03 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F3.A0.06423.A0DC3126; Tue, 22 Feb 2022 02:34:02 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20220221173402epcas5p3f85b10debc38c7ec1e1bd607055672d8~V3Y5ZinoD0424704247epcas5p3V; Mon, 21 Feb 2022 17:34:02 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220221173402epsmtrp1e821ef541eff55cdedae510a4853e1b3~V3Y5YuyW-2875828758epsmtrp16; Mon, 21 Feb 2022 17:34:02 +0000 (GMT) X-AuditID: b6c32a49-b01ff70000001917-aa-6213cd0aad21 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 99.DA.29871.A0DC3126; Tue, 22 Feb 2022 02:34:02 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220221173400epsmtip262b43f76e966b435aacb3b28e52979b4~V3Y4HTTGA0830808308epsmtip2R; Mon, 21 Feb 2022 17:34:00 +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 v3 1/3] clocksource/drivers/exynos_mct: Remove mct interrupt index enum Date: Mon, 21 Feb 2022 23:15:45 +0530 Message-Id: <20220221174547.26176-1-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCKsWRmVeSWpSXmKPExsWy7bCmli7XWeEkg7m7zS0ezNvGZjHvs6zF xrc/mCw2Pb7GanF51xw2ixnn9zFZrD1yl91i0dYv7BabN01lduD0mNXQy+Zx59oeNo93586x e2xeUu/Rt2UVo8fnTXIBbFHZNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJ uam2Si4+AbpumTlANykplCXmlAKFAhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCkwK9IoTc4tL 89L18lJLrAwNDIxMgQoTsjOWbO5iKbjCVdE04zF7A+N9ji5GTg4JAROJX8e+sHYxcnEICexm lJiz+BsjhPOJUeLi6jNQmW+MEi9mzGWDaZk0eSdU1V5GiXuP+qCcFiaJSy9WMIFUsQloS9yd vgXMFhFwk7jR2MEEUsQscI1R4s/EQ4wgCWGBSInO7jesIDaLgKrEza4vYCt4BWwkzrSsYoRY Jy+xesMBZpBmCYFD7BLTJj1jgUi4SHxZu54JwhaWeHV8CzuELSXxsr8NyOYAsrMlenYZQ4Rr JJbOOwbVai9x4MocFpASZgFNifW79EHCzAJ8Er2/nzBBdPJKdLQJQVSrSjS/uwrVKS0xsbub FcL2kDi5dxqYLSQQK3F49TGmCYwysxCGLmBkXMUomVpQnJueWmxaYJiXWg6PnOT83E2M4OSl 5bmD8e6DD3qHGJk4GA8xSnAwK4nw3mEXThLiTUmsrEotyo8vKs1JLT7EaAoMpYn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9L13czi6F2f81Hzbvs14s0hizJGT55qOZ+2WrTnR a/T4VDc71+x2ox0N/8uN55zufypU9uYe47TVrzeWOXHMitqiaMzE9qj01z6VXW82Fp95kl34 qGCLwinNJ5eeGTTfV1ueV3jDV9cruFX1oZ3IK6eYiQkRh8R2+OqF/wrXXyl3eN7GIw+m/Az3 vbuXQWE640mLn0KnONbtNDz7o2GmuMWJuZrPSy3mdpqLcnLpNW1szehZ5fORQWTSD+Xv/gsf HIlXZZ6Tr8D2W4mlOCPRUIu5qDgRAEiWLAagAgAA X-CMS-MailID: 20220221173402epcas5p3f85b10debc38c7ec1e1bd607055672d8 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220221173402epcas5p3f85b10debc38c7ec1e1bd607055672d8 References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alim Akhtar Reviewed-by: Krzysztof Kozlowski --- drivers/clocksource/exynos_mct.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) 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 Mon Feb 21 17:45:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 544595 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B817DC433F5 for ; Mon, 21 Feb 2022 17:34:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235247AbiBURen (ORCPT ); Mon, 21 Feb 2022 12:34:43 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232956AbiBURem (ORCPT ); Mon, 21 Feb 2022 12:34:42 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9819D1B79D for ; Mon, 21 Feb 2022 09:34:15 -0800 (PST) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220221173411epoutp0153c1e924b8b9d84f541109c7c2823da3~V3ZCYEcAE0756207562epoutp01A for ; Mon, 21 Feb 2022 17:34:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220221173411epoutp0153c1e924b8b9d84f541109c7c2823da3~V3ZCYEcAE0756207562epoutp01A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1645464852; bh=czJXhhu7BKvM2wKopoIGmCQLR5jigccH7TKoGeuBU3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GXnZj7TmOar23rEu0LnP0YxcVZ9LXcVvjW013sMFlXUlfKek2tYy3VGQKPUW6kKMr VRFFL3GlvidTKn2QaA2zZMeC4c8IH3xBV0Gt530duI52mD1g25OlQYy3scQXTaUSt3 MiMTuCaivsZi91+jKo5XLbxDQjpd4BKyntIAM5nE= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220221173410epcas5p1b92b382e13b34682517d2914c47fd301~V3ZA9Km8I1540215402epcas5p1w; Mon, 21 Feb 2022 17:34:10 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.182]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4K2Ttk0WN3z4x9Pq; Mon, 21 Feb 2022 17:34:06 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 94.A0.06423.D0DC3126; Tue, 22 Feb 2022 02:34:05 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20220221173404epcas5p44ceb57158d3df4808ec1f409f53a0e81~V3Y71--eY2548525485epcas5p49; Mon, 21 Feb 2022 17:34:04 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220221173404epsmtrp1dad9756e3a6408cc7a11508f9c7d57d5~V3Y71NOvs2875728757epsmtrp1C; Mon, 21 Feb 2022 17:34:04 +0000 (GMT) X-AuditID: b6c32a49-b01ff70000001917-ae-6213cd0d33b7 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id CA.DA.29871.C0DC3126; Tue, 22 Feb 2022 02:34:04 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220221173403epsmtip2e537cd01c5f19d10a80eaa8432ccc376~V3Y6itD6t0992909929epsmtip2N; Mon, 21 Feb 2022 17:34:03 +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 v3 2/3] clocksource/drivers/exynos_mct: bump up mct max irq number Date: Mon, 21 Feb 2022 23:15:46 +0530 Message-Id: <20220221174547.26176-2-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220221174547.26176-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHKsWRmVeSWpSXmKPExsWy7bCmui7vWeEkgz8L9SwezNvGZjHvs6zF xrc/mCw2Pb7GanF51xw2ixnn9zFZrD1yl91i0dYv7BabN01lduD0mNXQy+Zx59oeNo93586x e2xeUu/Rt2UVo8fnTXIBbFHZNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJ uam2Si4+AbpumTlANykplCXmlAKFAhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCkwK9IoTc4tL 89L18lJLrAwNDIxMgQoTsjNmnGlgLnjKVtF4cjZbA+M11i5GTg4JAROJZTfPs3cxcnEICexm lDgz4zgrhPOJUeL2mzdsEM43RokZzZdZYFoOT/zOBJHYyyix9eAXqP4WJomva+aDVbEJaEvc nb6FCcQWEXCTuNHYAdbBLHCNUeLPxEOMIAlhgRCJo7d/ATVwcLAIqEq0XWIDMXkFbCQ+nTeE WCYvsXrDAWYQm1PAVuLEhH5GkDESAvfYJS7N/c4MUeQi8fDBayYIW1ji1fEt7BC2lMTL/jZ2 kJkSAtkSPbuMIcI1EkvnHYN6xl7i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xYY5qWW6xUn5haX5qXr JefnbmIEB6OW5g7G7as+6B1iZOJgPMQowcGsJMJ7h104SYg3JbGyKrUoP76oNCe1+BCjNAeL kjjvha6T8UIC6YklqdmpqQWpRTBZJg5OqQYmj8OLfuxje91xZrXiyn6evGy2OfLXvYOljuuk 8N1K+304d0PAO/6Ein7HyWFt2jI6zn7RlhY+p358nHbhZIrE/urnHhz/FpzVrtZlNY14FFib aqS3+ce9j5Mvr65a4XZ2QtIhL8Gcu9J8IuFf5L4unyKakcQWNWGG1CGHPG6OxQeVTPInb1+6 woklYafh3D1f28wXvZZiuMS9rnzJgVU3OJafmrtTdEnahTq/P8Wr353MSNT2bKzYtfrDy+ik Sb+z6t4sPr95i07jPP3zD3jnL1nC3HHldPikBxsmrvT5bXX2t+N/v/WL3/PVyFgbnl/0Zm3A 563i9nlTCrZc7tiwRIHhmbD9+lbxH7q7bgexuiuxFGckGmoxFxUnAgChCF98tQIAAA== X-CMS-MailID: 20220221173404epcas5p44ceb57158d3df4808ec1f409f53a0e81 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220221173404epcas5p44ceb57158d3df4808ec1f409f53a0e81 References: <20220221174547.26176-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Bump-up maximum number of MCT IRQ to match the binding documentation. This make driver scalable for SoC which has more than 12 timer irqs, like recently added FSD SoC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alim Akhtar --- 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 Mon Feb 21 17:45:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 545521 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77BBEC433FE for ; Mon, 21 Feb 2022 17:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233885AbiBURel (ORCPT ); Mon, 21 Feb 2022 12:34:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233131AbiBURek (ORCPT ); Mon, 21 Feb 2022 12:34:40 -0500 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 069261AF20 for ; Mon, 21 Feb 2022 09:34:16 -0800 (PST) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220221173414epoutp02049d2a4ca113bde78e20f5a02fcaff0c~V3ZEoNdC43244932449epoutp02M for ; Mon, 21 Feb 2022 17:34:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220221173414epoutp02049d2a4ca113bde78e20f5a02fcaff0c~V3ZEoNdC43244932449epoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1645464854; bh=RvDLmLSxETfO6A5wae6RmRdbn5NU2PIo7D5FXAXzYck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ory4sB6Bd/USFfMxOgPLwaZ5wazcy150+NhpiA8CwtENEO1jX1iq9ZJRQK0ke6n07 V56CdmNXsuw8/5/cIAYYXQFtTEXY7yJ5rlGHUlHusOlZ6l025nL0cWbtVzbwK579li CSjzyEgteycp4WlNjlY1xpJa4MolRPoDwcN31LOM= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20220221173413epcas5p4af911cfa40837b326059a3f4d8cde9ef~V3ZDaibs22548525485epcas5p4A; Mon, 21 Feb 2022 17:34:13 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.181]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4K2Ttl62m0z4x9Pp; Mon, 21 Feb 2022 17:34:07 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 15.C5.05590.F0DC3126; Tue, 22 Feb 2022 02:34:07 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20220221173407epcas5p117620b55b5f5a94d6a525342374efa51~V3Y_LKgYD1540215402epcas5p1v; Mon, 21 Feb 2022 17:34:07 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220221173407epsmtrp1b6970963b6f323bc47e6fc4dae9a3cb8~V3Y_KMsuh2875828758epsmtrp18; Mon, 21 Feb 2022 17:34:07 +0000 (GMT) X-AuditID: b6c32a4b-739ff700000015d6-20-6213cd0f83fa Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 6B.DA.29871.F0DC3126; Tue, 22 Feb 2022 02:34:07 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220221173406epsmtip25119c73c59b09bc7191cb6505e9d3dcf~V3Y84V9yL0069900699epsmtip2P; Mon, 21 Feb 2022 17:34:05 +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 v3 3/3] clocksource/drivers/exynos_mct: increase the size of name array Date: Mon, 21 Feb 2022 23:15:47 +0530 Message-Id: <20220221174547.26176-3-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220221174547.26176-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAKsWRmVeSWpSXmKPExsWy7bCmpi7/WeEkg00fDSwezNvGZjHvs6zF xrc/mCw2Pb7GanF51xw2ixnn9zFZrD1yl91i0dYv7BabN01lduD0mNXQy+Zx59oeNo93586x e2xeUu/Rt2UVo8fnTXIBbFHZNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJ uam2Si4+AbpumTlANykplCXmlAKFAhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCkwK9IoTc4tL 89L18lJLrAwNDIxMgQoTsjP2z7zMXrCEo+LE5nWMDYwv2boYOTkkBEwkbr2YyNzFyMUhJLCb UWL+zn1QzidGifW/vzJCON8YJZ7N/s8I09K1qwuqai+jRNex3VBVLUwSFx/8ZQWpYhPQlrg7 fQsTiC0i4CZxo7GDCaSIWeAao8SfiYfARgkLREpcWPAbzGYRUJXYMfki0FgODl4BG4kLOwoh tslLrN5wgBnE5hSwlTgxoR9smYTALXaJg6/us0MUuUj8+HQO6jxhiVfHt0DFpSRe9rexg8yU EMiW6NllDBGukVg67xgLhG0vceDKHBaQEmYBTYn1u/RBwswCfBK9v58wQXTySnS0CUFUq0o0 v7sK1SktMbG7mxXC9pA4vesWNEwmMErM+fi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mpxYcYpTlY lMR5L3SdjBcSSE8sSc1OTS1ILYLJMnFwSjUwTd/l/9Yt994yZc337t5eH4X9L65cuF2rkFnV 2/iNvVHaW9NagZ5F+lF77z117pK8fHGj45FZLZt2Hjhh1Pbdlu3Qgotl+kXvmX7K/81o4k+2 vpv2ykRhZoGpX9isWT6vyrd9XXBYai67bl3Bju7JLX/aN+UePPLOcp3JFcNFPKc47n5hrJxo +5vFZt3H9nV7JTc8Wmop2igmsmNHuIzgqa4WvhrDh1w7mL4G32lawe7bL+1Wf/Cd1E6W0wVl LxSW7rtWy/btn+SVUOb7recn96lk7q1WVFG4f8ZA7dfS9V82l0pWX6hQ2nOYceayzxvE8qb1 lBzTeNDx66ek8M6uRYrbtrhLBN7+puYa4nO9UYmlOCPRUIu5qDgRAK+I6m62AgAA X-CMS-MailID: 20220221173407epcas5p117620b55b5f5a94d6a525342374efa51 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220221173407epcas5p117620b55b5f5a94d6a525342374efa51 References: <20220221174547.26176-1-alim.akhtar@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Variable _name_ hold mct_tick number per cpu and it is currently limited to 10. Which restrict the scalability of the MCT driver for the SoC which has more local timers interrupts (>= 12). Increase the length of it to make mct_tick printed correctly for each local timer interrupts per CPU. Signed-off-by: Alim Akhtar --- drivers/clocksource/exynos_mct.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 0c7931f7f99a..b6de352b703d 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -80,7 +80,11 @@ static int mct_irqs[MCT_NR_IRQS]; struct mct_clock_event_device { struct clock_event_device evt; unsigned long base; - char name[10]; + /** + * The length of the name must be adjusted if number of + * local timer interrupts grow over two digits + */ + char name[11]; }; static void exynos4_mct_write(unsigned int value, unsigned long offset)