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: 12753993 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 74873C433EF for ; Mon, 21 Feb 2022 17:35:50 +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=LP4jnTllQP2IEvQon4PzF6i4i4NUITQwzZ6Tt6X+u/M=; b=CyYMyrFplzRc5K 67DnBw1mOV3Us6jVqD8PSrCEUhZpq3RWOOZTWSiYjzCN3ZOJZpyNfmOgLfh/j5LqWAtMzSvPzFgpN hTcq0woOX32NypA6b8Dds2V/M5Q/FXjFvWvgh+BfciegUhgjjiwDX9IWpDygDL5d3RlNP52M7FMc3 aNQzp/wqjUW2J11sYXS66q+7iRUNcJkVx5wtYXSNcej61a7z+U5/bHNhDY3DsY8G1WcwKS4Ddz0pG gsF899QJ9Hh9nNsTPtWXJ092RM7tKxh/NCpJTSZn8AiakMBXYghZwy44nBMm2YjYynFBZl/YcN17q gx1BHpTFzKXuGG1ASlww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMCaA-006nCq-8u; Mon, 21 Feb 2022 17:34:42 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMCZm-006n7H-QV for linux-arm-kernel@lists.infradead.org; Mon, 21 Feb 2022 17:34:22 +0000 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220221173414epoutp035ec7c31c9795ed18884cca8d1d97587f~V3ZEea2R72630326303epoutp034 for ; Mon, 21 Feb 2022 17:34:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220221173414epoutp035ec7c31c9795ed18884cca8d1d97587f~V3ZEea2R72630326303epoutp034 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/mCw2Pb7GanF51xw2ixnn9zFZrD1yl91i0dYv7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WbdE4cfOayVVmfcOUFRdyojhWr1Ni Kc5INNRiLipOBABhrXk98wMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsWy7bCSvC7/WeEkg88t4hYP5m1js5j3WdZi 49sfTBabHl9jtbi8aw6bxYzz+5gs1h65y26xaOsXdovNm6YyO3B6zGroZfO4c20Pm8e7c+fY PTYvqffo27KK0ePzJrkAtigum5TUnMyy1CJ9uwSujP0zL7MXLOGoOLF5HWMD40u2LkZODgkB E4muXV3MXYxcHEICuxkl1p+9zQSRkJa4vnECO4QtLLHy33N2iKImJolj654wgyTYBLQl7k7f AtYgIuAh0fbvHtgkZoF7jBK/W6YxgiSEBcIlJuy9DzaJRUBVYsfki0BFHBy8AjYSF3YUQiyQ l1i94QDYTE4BW4kTE/oZQUqEgEpOt+lMYORbwMiwilEytaA4Nz232LDAMC+1XK84Mbe4NC9d Lzk/dxMjOBy1NHcwbl/1Qe8QIxMH4yFGCQ5mJRHeO+zCSUK8KYmVValF+fFFpTmpxYcYpTlY 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220221_093419_265019_39D8AEAC X-CRM114-Status: GOOD ( 17.28 ) 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 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 Reviewed-by: Krzysztof Kozlowski --- 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)